From d61e851298a995469c06a8995266be668443746d Mon Sep 17 00:00:00 2001 From: steeef Date: Fri, 1 Oct 2010 07:35:00 -0700 Subject: [PATCH] add condition for untracked files (vcs_info doesn't support) --- themes/steeef.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 themes/steeef.zsh-theme diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme old mode 100644 new mode 100755 index a54cdce14..8c359f40c --- a/themes/steeef.zsh-theme +++ b/themes/steeef.zsh-theme @@ -56,7 +56,7 @@ function steeef_chpwd { add-zsh-hook chpwd steeef_chpwd function steeef_precmd { - if [[ -n "$PR_GIT_UPDATE" ]] ; then + if [[ -n "$PR_GIT_UPDATE" || -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] ; then vcs_info 'prompt' PR_GIT_UPDATE= fi