From c238bdd8614cd9d3297e3edf61b9a3479e48fd3f Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 25 May 2013 13:52:06 -0700 Subject: [PATCH] Indentation and quote cleanup of help.fish --- share/functions/help.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index dc98daf2e..ef147e722 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 google-chrome chromium-browser + 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 type $BROWSER >/dev/null - # User has manually 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 @@ -71,7 +71,7 @@ function help --description 'Show help for the fish shell' if test -z $fish_browser printf (_ '%s: Could not find a web browser.\n') help - printf (_ 'Please set the variable $BROWSER to a suitable browser and try again.\n\n') + printf (_ 'Please set the variable $BROWSER to a suitable browser and try again.\n\n') return 1 end @@ -123,10 +123,10 @@ function help --description 'Show help for the fish shell' switch $fish_browser case 'htmlview' 'x-www-browser' - printf (_ 'help: Help is being displayed in your default browser.\n') + printf (_ 'help: Help is being displayed in your default browser.\n') case '*' - printf (_ 'help: Help is being displayed in %s.\n') $fish_browser + printf (_ 'help: Help is being displayed in %s.\n') $fish_browser end