mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
Darwin Open
Tweak the open function to use /usr/bin/open on Darwin, and mimedb on everything else. darcs-hash:20060206012623-494f2-e4626c03895065837f0c8981482d5b16313dfc08.gz
This commit is contained in:
parent
bde5921258
commit
04ce9ecf16
1 changed files with 5 additions and 1 deletions
|
@ -176,7 +176,11 @@ end
|
|||
#
|
||||
|
||||
function open -d "Open file in default application"
|
||||
mimedb -l -- $argv
|
||||
if test (uname) = Darwin
|
||||
open $argv
|
||||
else
|
||||
mimedb -l -- $argv
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue