diff --git a/share/functions/__fish_man_page.fish b/share/functions/__fish_man_page.fish index 75cf7f6d9..20ad88260 100644 --- a/share/functions/__fish_man_page.fish +++ b/share/functions/__fish_man_page.fish @@ -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