From b5e92a831bc151c073a48890628cff80964c9e61 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 25 Aug 2012 13:02:58 -0700 Subject: Use xdg-open instead of BROWSER, if available https://github.com/fish-shell/fish-shell/issues/293 --- share/functions/help.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/functions/help.fish b/share/functions/help.fish index 6d10236a..4b2a0164 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -63,6 +63,11 @@ function help --description "Show help for the fish shell" end end + # If xdg-open is available, just use that + if type xdg-open > /dev/null + set fish_browser xdg-open + end + # On OS X, just use open if test (uname) = Darwin set fish_browser (which open) -- cgit v1.2.3