summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorsteeef <steeef@gmail.com>2010-10-01 14:40:06 -0700
committersteeef <steeef@gmail.com>2010-10-01 14:40:06 -0700
commit7405f5d9ff29f42e934fa5f3c87401437c16aedd (patch)
treeaeacd8d7be071e239397df57094cb551884c1007 /themes
parent6fcf9393c31a51cef688b591de73817c5988c405 (diff)
downloadzsh-7405f5d9ff29f42e934fa5f3c87401437c16aedd.tar.gz
zsh-7405f5d9ff29f42e934fa5f3c87401437c16aedd.tar.bz2
zsh-7405f5d9ff29f42e934fa5f3c87401437c16aedd.zip
fix untracked files checking
Diffstat (limited to 'themes')
-rw-r--r--themes/steeef.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
index a43192743..8c4c80265 100644
--- a/themes/steeef.zsh-theme
+++ b/themes/steeef.zsh-theme
@@ -66,7 +66,7 @@ add-zsh-hook chpwd steeef_chpwd
function steeef_precmd {
# check for untracked files or updated submodules, since vcs_info doesn't
- if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
+ if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
PR_GIT_UPDATE=1
FMT_BRANCH="(%{$fg[magenta]%}%b%u%c%{$fg[red]%}●${PR_RST})"
else