mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Use the xdg-open command in the open function if it exists
darcs-hash:20061011161749-ac50b-f700489a238dafbd9aec4ef4f2eed731a8622b27.gz
This commit is contained in:
parent
afaf156a42
commit
17a13a8eb7
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue