mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 06:54:03 +00:00
man: Reroute ".",":","[" to the proper names
Fixes #9552
(cherry picked from commit 8ff78eddf0
)
This commit is contained in:
parent
9f83155fca
commit
fdf075149f
1 changed files with 15 additions and 0 deletions
|
@ -36,5 +36,20 @@ function man --description "Format and display the on-line manual pages"
|
||||||
set MANPATH $fish_manpath $MANPATH
|
set MANPATH $fish_manpath $MANPATH
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if test (count $argv) -eq 1
|
||||||
|
# Some of these don't have their own page,
|
||||||
|
# and adding one would be awkward given that the filename
|
||||||
|
# isn't guaranteed to be allowed.
|
||||||
|
# So we override them with the good name.
|
||||||
|
switch $argv
|
||||||
|
case :
|
||||||
|
set argv true
|
||||||
|
case '['
|
||||||
|
set argv test
|
||||||
|
case .
|
||||||
|
set argv source
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
command man $argv
|
command man $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue