diff options
author | Henry Yan <yanhonglei@gmail.com> | 2012-07-17 00:36:50 +0800 |
---|---|---|
committer | Henry Yan <yanhonglei@gmail.com> | 2012-07-17 00:36:50 +0800 |
commit | 4a11d2c35c7a526e648b37a5b02b7695be46b16a (patch) | |
tree | 1eb542466758885ee40f3f60cc57d6438f38dc4d /themes/steeef.zsh-theme | |
parent | e9feccf6a94f9f5238ff0b3501f62575d14ae148 (diff) | |
parent | 11034217a7ea3cffe6e0fe631837c518b8c7e1a5 (diff) | |
download | zsh-4a11d2c35c7a526e648b37a5b02b7695be46b16a.tar.gz zsh-4a11d2c35c7a526e648b37a5b02b7695be46b16a.tar.bz2 zsh-4a11d2c35c7a526e648b37a5b02b7695be46b16a.zip |
merge from upstream master
Diffstat (limited to 'themes/steeef.zsh-theme')
-rw-r--r-- | themes/steeef.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme index a2583b028..312229e9f 100644 --- a/themes/steeef.zsh-theme +++ b/themes/steeef.zsh-theme @@ -81,7 +81,7 @@ add-zsh-hook chpwd steeef_chpwd function steeef_precmd { if [[ -n "$PR_GIT_UPDATE" ]] ; then # check for untracked files or updated submodules, since vcs_info doesn't - if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then + if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then PR_GIT_UPDATE=1 FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})" else |