]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/60_vcsprompt
set warn_create_global and unglobal a few
[zsh.git] / .zsh / zshrc / 60_vcsprompt
index 4cc18a3fd6feb72d174044579ad73d6999c7ccf7..9fa0f44e4a458852e7d636f316562eaa0d898e5c 100644 (file)
@@ -144,9 +144,8 @@ __vcs_set_prompt_variables()
       if [ -d "$GIT_DIR" ]; then
         # poor man's replace until I find out how to do named dirs properly
         # here:
-        _D="${GIT_DIR/$HOME/~}"
+        local _D="${GIT_DIR/$HOME/~}"
         set -- "$_D" "$2" "${${1#$_D}%/}"
-        unset _D
       fi
       ;;
     hg)