From 55250fa58ede8bb33f39ebb4503e6862f84b9fdf Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 30 Jan 2012 13:48:46 +0100 Subject: [Prompts] chpwd: use lighter git-cmd for branch status --- 12_Prompts.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '12_Prompts.zsh') 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 -- cgit v1.2.3