mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
90302d9232
commit
7c822cbf30
1 changed files with 10 additions and 0 deletions
|
@ -92,6 +92,16 @@ function help -d (N_ "Show help for the fish shell")
|
||||||
end
|
end
|
||||||
|
|
||||||
if test $fish_browser_bg
|
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 \&
|
eval $fish_browser file://$__fish_help_dir/$fish_help_page \&
|
||||||
else
|
else
|
||||||
eval $fish_browser file://$__fish_help_dir/$fish_help_page
|
eval $fish_browser file://$__fish_help_dir/$fish_help_page
|
||||||
|
|
Loading…
Reference in a new issue