From 19004642baaad081a04f888e3eb5e184fbd7caff Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 2 Apr 2021 16:58:34 +0200 Subject: [PATCH] __fish_apropos: Define again on non-macOS This had a weirdly broken if condition. --- share/functions/__fish_apropos.fish | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/functions/__fish_apropos.fish b/share/functions/__fish_apropos.fish index d555fa016..6da05a15d 100644 --- a/share/functions/__fish_apropos.fish +++ b/share/functions/__fish_apropos.fish @@ -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