From: Amand Tihon Date: Mon, 9 May 2011 07:51:06 +0000 (+0200) Subject: Don't show the last git repo as pwd. X-Git-Url: https://git.alrj.org/?a=commitdiff_plain;h=d5fa159d3b0bcf2e4c2dc3b812dea053d2e61929;p=zsh.d.git Don't show the last git repo as pwd. Git basedir must be cleared, or it will "stick" when the repository is exited. The prompt would then contain the wrong pwd. --- diff --git a/S60_git b/S60_git index 256afc8..78c163c 100644 --- a/S60_git +++ b/S60_git @@ -14,6 +14,7 @@ __ZSH_GIT_STATUS_INVALID=1 git_chpwd() { # On cd, invalidate git status in prompt __ZSH_GIT_VARS_INVALID=1 + __ZSH_GIT_BASEDIR="" }