diff --git a/init/fish_function.fish b/init/fish_function.fish index 3bef671ff..45fe85c30 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -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 #