mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:28:58 +08:00
17a13a8eb7
darcs-hash:20061011161749-ac50b-f700489a238dafbd9aec4ef4f2eed731a8622b27.gz
17 lines
293 B
Fish
17 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
|
|
|