X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/b3f79d5a2e1671358a5972d9529316be43c55281..bcb29e299d0786ccbee8a255eb9e178a87511b55:/.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)