mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
17a13a8eb7
darcs-hash:20061011161749-ac50b-f700489a238dafbd9aec4ef4f2eed731a8622b27.gz
16 lines
293 B
Fish
16 lines
293 B
Fish
|
|
#
|
|
# 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 (N_ "Open file in default application")
|
|
if type -f xdg-open >/dev/null
|
|
xdg-open $argv
|
|
else
|
|
mimedb -l -- $argv
|
|
end
|
|
end
|
|
end
|
|
|