aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/help.fish
diff options
context:
space:
mode:
authorGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-05-23 12:20:40 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-05-25 13:47:34 -0700
commit3a4a2a6daca2e5822b067dffd5a30ec13a37c63e (patch)
treee86ccc5dd439cc2b9a69b74d5bfe468069b9989f /share/functions/help.fish
parentcfe815135e6649d3381799eb6da034b78b8ebf00 (diff)
help command: only use $BROWSER if it is a valid command
(plus add Google Chrome and Chromium to graphical_browsers and a spelling fix)
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r--share/functions/help.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish
index d3d229c2..78f93657 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -22,11 +22,11 @@ function help --description 'Show help for the fish shell'
# Find a suitable browser for viewing the help pages. This is needed
# by the help function defined below.
#
- set -l graphical_browsers htmlview x-www-browser firefox galeon mozilla konqueror epiphany opera netscape rekonq
+ set -l graphical_browsers htmlview x-www-browser firefox galeon mozilla konqueror epiphany opera netscape rekonq google-chrome chromium-browser
set -l text_browsers htmlview www-browser links elinks lynx w3m
- if test $BROWSER
- # User has manualy set a preferred browser, so we respect that
+ if type $BROWSER >/dev/null
+ # User has manually set a preferred browser, so we respect that
set fish_browser $BROWSER
# If browser is known to be graphical, put into background