diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-30 13:48:46 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-30 13:48:46 +0100 |
commit | 55250fa58ede8bb33f39ebb4503e6862f84b9fdf (patch) | |
tree | b9cd85253b334bcf9521c6d53d99bd2d719d0ab5 | |
parent | 41ebb8968480f78c5d33be0d51b1e02e50e59d0f (diff) |
[Prompts] chpwd: use lighter git-cmd for branch status
-rw-r--r-- | 12_Prompts.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index c06f982..052c2dd 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -41,7 +41,7 @@ chpwd() if ( __cmd_exists git && test -d .git ) then # Shows tracked branches and modified files - git checkout HEAD 2>&1 | sed 's/^/ /' + git status | awk '/^# Your branch/ { print $0 }' | sed 's/^# / /' fi |