mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
Fix broken __fish_whatis
This has been broken for a *long* time.
This commit is contained in:
@@ -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" ""
|
||||
|
||||
Reference in New Issue
Block a user