From 2e9dab71a3432913cf6ac0422c3821601290895d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 30 Apr 2021 20:09:56 +0200 Subject: [PATCH] __fish_apropos: Don't overwrite $dir --- share/functions/__fish_apropos.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/functions/__fish_apropos.fish b/share/functions/__fish_apropos.fish index 2cae80018..5bf44f1d7 100644 --- a/share/functions/__fish_apropos.fish +++ b/share/functions/__fish_apropos.fish @@ -11,6 +11,7 @@ set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.) if test $status -eq 0 -a (count $sysver) -eq 3 and test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19 + set -l dir if test -n "$XDG_CACHE_HOME" set dir $XDG_CACHE_HOME/fish else