mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 05:29:43 +08:00
Fix broken __fish_whatis
This has been broken for a *long* time.
This commit is contained in:
parent
2d3bb36b8c
commit
d914f4e991
|
@ -8,7 +8,7 @@ function __fish_whatis
|
|||
end
|
||||
|
||||
set -l description (whatis $cmd 2>/dev/null | string replace -r '.*? - ' '')[1]
|
||||
if not string match -qr -- "." "$description"
|
||||
if string match -qr -- "." "$description"
|
||||
printf '%s\n' $description
|
||||
return 0
|
||||
else if not string match -q -- "$fallback" ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user