]> git.alrj.org Git - zsh.d.git/commitdiff
Don't show the last git repo as pwd.
authorAmand Tihon <amand.tihon@iba-group.com>
Mon, 9 May 2011 07:51:06 +0000 (09:51 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Mon, 9 May 2011 07:51:06 +0000 (09:51 +0200)
Git basedir must be cleared, or it will "stick" when the repository is exited.
The prompt would then contain the wrong pwd.

S60_git

diff --git a/S60_git b/S60_git
index 256afc8c08ec9951e9cb3c1abfd52ad442937ea2..78c163c7b8d9d48a3e70dc32501186a134163595 100644 (file)
--- 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=""
 }