From ffea78e98b6a9c494c0a52f59e6ad1678a6dc445 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 21 Aug 2023 16:42:27 +1000 Subject: Fixing a few things in emacs, adding xdgdef Emacs: updating the org clock refile so that it refiles all text in the logbook --- misc/bin/xdgdef | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 misc/bin/xdgdef (limited to 'misc') diff --git a/misc/bin/xdgdef b/misc/bin/xdgdef new file mode 100755 index 0000000..3d8791f --- /dev/null +++ b/misc/bin/xdgdef @@ -0,0 +1,5 @@ +#!/bin/bash +# Print xdg file type and the default opener for a file + +filetype=$(xdg-mime query filetype "$1") +echo $filetype=`xdg-mime query default "$filetype"` -- cgit v1.2.3