fish-shell/init/functions/open.fish

13 lines
223 B
Fish
Raw Normal View History

#
# 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