From f33cf23e23de9279fb743689b0b0ae3f907d70cc Mon Sep 17 00:00:00 2001 From: Gazorby Date: Fri, 17 Apr 2020 15:11:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20test=20variable=20existen?= =?UTF-8?q?ce=20instead=20of=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $_abbr_tips_is_spawned isn't useful outside the initialization process, so we only need to check for its existence instead of its value to determine if the current shell has been spawned --- conf.d/abbr_tips.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.d/abbr_tips.fish b/conf.d/abbr_tips.fish index 98fc6b6..b930a6b 100644 --- a/conf.d/abbr_tips.fish +++ b/conf.d/abbr_tips.fish @@ -62,7 +62,7 @@ end # Prevent this file to spawn more than one subshell if test "$USER" != 'root' and test $ABBR_TIPS_AUTO_UPDATE = 'background' - and ! test $_abbr_tips_is_spawned = 1 + and ! set -q _abbr_tips_is_spawned set -gx _abbr_tips_is_spawned 1 fish -c 'abbr_tips_update' & set -e _abbr_tips_is_spawned