fix: treat run0 and please as a prefix in __fish_man_page

Closes #12145
This commit is contained in:
Gleb Smirnov
2025-12-07 11:44:47 +03:00
committed by David Adam
parent aa4ebd96f9
commit 3518d4f6ad

View File

@@ -11,7 +11,7 @@ function __fish_man_page
# Skip leading commands and display the manpage of following command
while set -q args[2]
and string match -qr -- '^(and|begin|builtin|caffeinate|command|doas|entr|env|exec|if|mosh|nice|not|or|pipenv|prime-run|setsid|sudo|systemd-nspawn|time|watch|while|xargs|.*=.*)$' $args[1]
and string match -qr -- '^(and|begin|builtin|caffeinate|command|doas|entr|env|exec|if|mosh|nice|not|or|pipenv|please|prime-run|run0|setsid|sudo|systemd-nspawn|time|watch|while|xargs|.*=.*)$' $args[1]
set -e args[1]
end