aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/fzopen
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fzopen')
-rwxr-xr-xplugins/fzopen7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/fzopen b/plugins/fzopen
index 677ea26..fa44e0f 100755
--- a/plugins/fzopen
+++ b/plugins/fzopen
@@ -29,5 +29,10 @@ case "$(file -biL "$entry")" in
*text*)
"${VISUAL:-$EDITOR}" "$entry" ;;
*)
- xdg-open "$entry" >/dev/null 2>&1 ;;
+ if uname | grep -q "Darwin"; then
+ open "$entry" >/dev/null 2>&1
+ else
+ xdg-open "$entry" >/dev/null 2>&1
+ fi
+ ;;
esac