diff options
author | axel <axel@liljencrantz.se> | 2006-08-15 04:11:35 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-08-15 04:11:35 +1000 |
commit | 7c822cbf30b6bde23123b9e5b47f602b848edbec (patch) | |
tree | b6a5ecffdee51be0971220e13ad9633db9aa12c9 | |
parent | 90302d923272083b23228871b07735da19dc8b06 (diff) |
Add a message to stdout in the help function describing where the help went if help opens an external browser window
darcs-hash:20060814181135-ac50b-6d9b05b714bc9576c260e87b5706e7d94dd73e39.gz
-rw-r--r-- | share/functions/help.fish | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish index 3bcbb1ad..2d8fb509 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -92,6 +92,16 @@ function help -d (N_ "Show help for the fish shell") end if test $fish_browser_bg + + switch $fish_browser + case 'htmlview' 'x-www-browser' + printf (_ 'help: Help is being displayed in your default browser\n') + + case '*' + printf (_ 'help: Help is being displayed in %s\n') $fish_browser + + end + eval $fish_browser file://$__fish_help_dir/$fish_help_page \& else eval $fish_browser file://$__fish_help_dir/$fish_help_page |