help: Handle the missing builtin aliases : and [

This commit is contained in:
pagedown 2022-08-11 13:29:37 +08:00 committed by Fabian Boehm
parent 9492628b08
commit 9c16677706
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,8 @@ Description
``true`` sets the exit status to 0.
**:** (a single colon) is an alias for the ``true`` command.
See Also
--------

View File

@ -127,6 +127,10 @@ function help --description 'Show help for the fish shell'
switch "$fish_help_item"
case "."
set fish_help_page "cmds/source.html"
case ":"
set fish_help_page "cmds/true.html"
case "["
set fish_help_page "cmds/test.html"
case globbing
set fish_help_page "language.html#expand"
case 'completion-*'