]> arthur.barton.de Git - ax-zsh.git/commitdiff
Correctly unset local variables
authorAlexander Barton <alex@barton.de>
Fri, 19 Feb 2016 09:58:40 +0000 (10:58 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 19 Feb 2016 09:58:40 +0000 (10:58 +0100)
plugins/virtualenvwrapper/virtualenvwrapper.zshrc
plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc

index f1cbae10f2b47ddb5c3d7b0e5e162422dbb92fa6..4bb78408eb791ca4d95eb271ccbb4ab4c329be8f 100644 (file)
@@ -15,6 +15,7 @@ for script (
                        && WORKON_HOME="$XDG_CACHE_HOME/virtualenvs"
 
                source "$script"
+               unset script
 
                # pip
                export PIP_REQUIRE_VIRTUALENV="true"
index 1c3b5001fcb1b72d90ae5f0f7f7957e43083703f..c663b9e36febd55dc6d306868fcd98df83a0391f 100644 (file)
@@ -9,6 +9,8 @@ for script (
                [[ -n "$ZSH_HIGHLIGHT_HIGHLIGHTERS" ]] \
                        && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
                source "$script"
+               unset script
                return
        fi
 done
+unset script