mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix broken __fish_whatis
This has been broken for a *long* time.
This commit is contained in:
parent
2d3bb36b8c
commit
d914f4e991
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ function __fish_whatis
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l description (whatis $cmd 2>/dev/null | string replace -r '.*? - ' '')[1]
|
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
|
printf '%s\n' $description
|
||||||
return 0
|
return 0
|
||||||
else if not string match -q -- "$fallback" ""
|
else if not string match -q -- "$fallback" ""
|
||||||
|
|
Loading…
Reference in a new issue