From 0a6af9ff424baaac4377f123f4427bfd8b78f84f Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 27 Sep 2021 12:31:35 -0600 Subject: [PATCH] corrected bizarre error --- zsh/helpers.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/helpers.zsh b/zsh/helpers.zsh index 43e6a9f..7780baf 100644 --- a/zsh/helpers.zsh +++ b/zsh/helpers.zsh @@ -9,7 +9,8 @@ _CA__RESTORE_ENVIRONMENT() { deactivate_node >/dev/null 2>&1 [ $_CA__RESTORE_PATH ] && export PATH="$_CA__RESTORE_PATH" - [ $_CA__RESTORE_ENV ] && for var in $_CA__RESTORE_ENV; do unset $var; done + [[ ${#_CA__RESTORE_ENV[@]} -gt 0 ]] \ + && for var in $_CA__RESTORE_ENV; do unset $var; done _CA__TMUX_RESTORE_WINDOW_NAME