add condition for untracked files (vcs_info doesn't support)

This commit is contained in:
steeef 2010-10-01 07:35:00 -07:00
commit d61e851298

2
themes/steeef.zsh-theme Normal file → Executable file
View file

@ -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