aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions')
-rw-r--r--share/functions/open.fish6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/functions/open.fish b/share/functions/open.fish
index 6a8665c5..140269ee 100644
--- a/share/functions/open.fish
+++ b/share/functions/open.fish
@@ -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