summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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