summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2009-06-23 17:55:30 +0200
committerHugues Hiegel <hugues.hiegel@openwide.fr>2009-06-23 17:55:30 +0200
commit43d1c1a024abaab735627050fa9043f7493f9f5f (patch)
tree483a53254ec221c2a439fb9e88188729096f49fc /01_Functions.zsh
parent8af8fa8a110aa80c7570d6c13ab014c3f5ee085d (diff)
[Funcs] chpwd : execs git-checkout HEAD when entering a directory with a .git/ folder
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index c0d1f2d..8824cab 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -289,5 +289,11 @@ chpwd()
todo
fi
fi
+
+ if ( cmd_exists git && test -d .git )
+ then
+ # Shows tracked branches and modified files
+ git-checkout HEAD
+ fi
}