mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 06:24:01 +00:00
help: Add the other pages
This commit is contained in:
parent
26fda2bf0d
commit
be9d17b08a
2 changed files with 14 additions and 0 deletions
|
@ -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-variables -d Variables
|
||||||
complete -c help -x -a tut-why_fish -d 'Why fish?'
|
complete -c help -x -a tut-why_fish -d 'Why fish?'
|
||||||
complete -c help -x -a tut-wildcards -d Wildcards
|
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 -- _ -)
|
set fish_help_page "tutorial.html#"(string sub -s 5 -- $fish_help_item | string replace -a -- _ -)
|
||||||
case tutorial
|
case tutorial
|
||||||
set fish_help_page "tutorial.html"
|
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 ''
|
case ''
|
||||||
set fish_help_page "index.html"
|
set fish_help_page "index.html"
|
||||||
case "*"
|
case "*"
|
||||||
|
|
Loading…
Reference in a new issue