summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-30 13:48:46 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-30 13:48:46 +0100
commit55250fa58ede8bb33f39ebb4503e6862f84b9fdf (patch)
treeb9cd85253b334bcf9521c6d53d99bd2d719d0ab5 /12_Prompts.zsh
parent41ebb8968480f78c5d33be0d51b1e02e50e59d0f (diff)
[Prompts] chpwd: use lighter git-cmd for branch status
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh2
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