From: Alexander Barton Date: Fri, 19 Feb 2016 09:58:40 +0000 (+0100) Subject: Correctly unset local variables X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=50d484d939a8d17f1b2502e757c99ad02db65950;ds=sidebyside Correctly unset local variables --- diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.zshrc b/plugins/virtualenvwrapper/virtualenvwrapper.zshrc index f1cbae1..4bb7840 100644 --- a/plugins/virtualenvwrapper/virtualenvwrapper.zshrc +++ b/plugins/virtualenvwrapper/virtualenvwrapper.zshrc @@ -15,6 +15,7 @@ for script ( && WORKON_HOME="$XDG_CACHE_HOME/virtualenvs" source "$script" + unset script # pip export PIP_REQUIRE_VIRTUALENV="true" diff --git a/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc b/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc index 1c3b500..c663b9e 100644 --- a/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc +++ b/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc @@ -9,6 +9,8 @@ for script ( [[ -n "$ZSH_HIGHLIGHT_HIGHLIGHTERS" ]] \ && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) source "$script" + unset script return fi done +unset script