diff options
Diffstat (limited to 'init/functions/open.fish')
-rw-r--r-- | init/functions/open.fish | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init/functions/open.fish b/init/functions/open.fish new file mode 100644 index 00000000..bfe0f99e --- /dev/null +++ b/init/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 + |