From 73e26a2ecb049189ac6845ecce0528857096e444 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 1 Sep 2022 07:39:14 -0600 Subject: [PATCH] v2.6.2 ===================================================================== --- Bug fixes ---------------------------- - VARIABLE__select actually sets the variable value after selection --- zsh/utils/environment.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zsh/utils/environment.zsh b/zsh/utils/environment.zsh index bef83b2..84dde90 100644 --- a/zsh/utils/environment.zsh +++ b/zsh/utils/environment.zsh @@ -17,7 +17,10 @@ __CHECK_ENV_VAR() { local SELECTION_VALUES=$(eval echo '$'$NAME'__select' | sed 's/,/\n/g') [ $SELECTION_VALUES ] && { local SELECTION=$(echo $SELECTION_VALUES | __FZF "select a value for '$NAME'") - [ $SELECTION ] && export VALUE=$SELECTION + [ $SELECTION ] && { + export $NAME=$SELECTION + return 0 + } } [ $VALUE ] && return 0