__fish_apropos: Define again on non-macOS

This had a weirdly broken if condition.
This commit is contained in:
Fabian Homborg 2021-04-02 16:58:34 +02:00
parent b9b2010342
commit 19004642ba

View File

@ -8,8 +8,8 @@ end
# https://en.wikipedia.org/wiki/Darwin_(operating_system)
set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
test $status -eq 0 -a (count $sysver) -eq 3
and if test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
if test $status -eq 0 -a (count $sysver) -eq 3
and test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
if test -n "$XDG_CACHE_HOME"
set dir $XDG_CACHE_HOME/fish
@ -48,5 +48,4 @@ else
function __fish_apropos
apropos $argv
end
end