From 7c822cbf30b6bde23123b9e5b47f602b848edbec Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 15 Aug 2006 04:11:35 +1000 Subject: [PATCH] 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 --- share/functions/help.fish | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/share/functions/help.fish b/share/functions/help.fish index 3bcbb1adb..2d8fb5093 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