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
This commit is contained in:
axel 2006-08-15 04:11:35 +10:00
parent 90302d9232
commit 7c822cbf30

View file

@ -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