diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-25 13:02:58 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-25 13:02:58 -0700 |
commit | b5e92a831bc151c073a48890628cff80964c9e61 (patch) | |
tree | 9f90f97cef2c8c3a306d63d7a94c4c300c6954e5 /share/functions/help.fish | |
parent | a2788129ffc45bce94bb35dbed4ea9f4a45d1e77 (diff) |
Use xdg-open instead of BROWSER, if available
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r-- | share/functions/help.fish | 5 |
1 files changed, 5 insertions, 0 deletions
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) |