X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/6698a8a0d2da74a08c95a2c5289e9e2e771efdee..ad7c4bae9781483a15c2a11c9db247edf7c3c365:/.zsh/zshrc/60_vcsprompt?ds=sidebyside diff --git a/.zsh/zshrc/60_vcsprompt b/.zsh/zshrc/60_vcsprompt index 4cc18a3..9fa0f44 100644 --- a/.zsh/zshrc/60_vcsprompt +++ b/.zsh/zshrc/60_vcsprompt @@ -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)