help: Add the other pages

This commit is contained in:
Fabian Homborg 2020-08-05 17:51:47 +02:00
parent 26fda2bf0d
commit be9d17b08a
2 changed files with 14 additions and 0 deletions

View File

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

View File

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