mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:23:28 +08:00
help: Add the other pages
This commit is contained in:
parent
26fda2bf0d
commit
be9d17b08a
|
@ -99,3 +99,9 @@ complete -c help -x -a tut-universal -d 'Universal Variables'
|
|||
complete -c help -x -a tut-variables -d Variables
|
||||
complete -c help -x -a tut-why_fish -d 'Why fish?'
|
||||
complete -c help -x -a tut-wildcards -d Wildcards
|
||||
|
||||
# Other pages
|
||||
complete -c help -x -a changelog -d "Fish's CHANGELOG"
|
||||
complete -c help -x -a completions -d "How to write completions"
|
||||
complete -c help -x -a faq -d "Frequently Asked Questions"
|
||||
complete -c help -x -a fish-for-bash-users -d "Differences from bash"
|
||||
|
|
|
@ -125,6 +125,14 @@ function help --description 'Show help for the fish shell'
|
|||
set fish_help_page "tutorial.html#"(string sub -s 5 -- $fish_help_item | string replace -a -- _ -)
|
||||
case tutorial
|
||||
set fish_help_page "tutorial.html"
|
||||
case changelog
|
||||
set fish_help_page changelog.html
|
||||
case completions
|
||||
set fish_help_page completions.html
|
||||
case faq
|
||||
set fish_help_page faq.html
|
||||
case fish-for-bash-users
|
||||
set fish_help_page fish_for_bash_users.html
|
||||
case ''
|
||||
set fish_help_page "index.html"
|
||||
case "*"
|
||||
|
|
Loading…
Reference in New Issue
Block a user