diff options
Diffstat (limited to 'share/functions/open.fish')
-rw-r--r-- | share/functions/open.fish | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/functions/open.fish b/share/functions/open.fish new file mode 100644 index 00000000..9e61f236 --- /dev/null +++ b/share/functions/open.fish @@ -0,0 +1,12 @@ + +# +# This allows us to use 'open FILENAME' to open a given file in the default +# application for the file. +# + +if not test (uname) = Darwin + function open -d (_ "Open file in default application") + mimedb -l -- $argv + end +end + |