From c4478f36bb64761ddf76c4a7cbc5f095c18285de Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 7 Aug 2013 18:07:59 +0200 Subject: [Git] Shows untracked marker on checkout branches only --- 01_Internal.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Internal.zsh b/01_Internal.zsh index 2582785..bf56b33 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -243,7 +243,7 @@ __get_git_branch () __debug __debug -n " tracking..." - if [ ! "$checkouted_branch" -o ! "$(git config --get branch.$checkouted_branch.remote)" ] + if [ "$checkouted_branch" -a ! "$(git config --get branch.$checkouted_branch.remote)" ] then my_git_branch+=$C_$_gcl_colors[untracked]$_C my_git_branch+=" ✖" -- cgit v1.2.3