mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Skip leading command in __fish_man_page
This commit is contained in:
@@ -8,9 +8,9 @@ function __fish_man_page
|
||||
return
|
||||
end
|
||||
|
||||
#Skip `sudo` and display then manpage of following command
|
||||
#Skip leading `sudo`/`command` and display then manpage of following command
|
||||
while set -q args[2]
|
||||
and string match -qr -- '^(sudo|.*=.*)$' $args[1]
|
||||
and string match -qr -- '^(sudo|command|.*=.*)$' $args[1]
|
||||
set -e args[1]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user