diff options
author | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-06-23 17:55:30 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-06-23 17:55:30 +0200 |
commit | 43d1c1a024abaab735627050fa9043f7493f9f5f (patch) | |
tree | 483a53254ec221c2a439fb9e88188729096f49fc /01_Functions.zsh | |
parent | 8af8fa8a110aa80c7570d6c13ab014c3f5ee085d (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.zsh | 6 |
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 } |