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