Use the xdg-open command in the open function if it exists

darcs-hash:20061011161749-ac50b-f700489a238dafbd9aec4ef4f2eed731a8622b27.gz
This commit is contained in:
axel 2006-10-12 02:17:49 +10:00
parent afaf156a42
commit 17a13a8eb7

View file

@ -6,7 +6,11 @@
if not test (uname) = Darwin
function open -d (N_ "Open file in default application")
mimedb -l -- $argv
if type -f xdg-open >/dev/null
xdg-open $argv
else
mimedb -l -- $argv
end
end
end