Skip to content

Commit

Permalink
πŸ› fix: test variable existence instead of value
Browse files Browse the repository at this point in the history
$_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
  • Loading branch information
gazorby committed Apr 17, 2020
1 parent a5e3102 commit f33cf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.d/abbr_tips.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f33cf23

Please sign in to comment.