... | ... |
@@ -66,7 +66,7 @@ add-zsh-hook chpwd steeef_chpwd |
66 | 66 |
|
67 | 67 |
function steeef_precmd { |
68 | 68 |
# check for untracked files or updated submodules, since vcs_info doesn't |
69 |
- if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then |
|
69 |
+ if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then |
|
70 | 70 |
PR_GIT_UPDATE=1 |
71 | 71 |
FMT_BRANCH="(%{$fg[magenta]%}%b%u%c%{$fg[red]%}●${PR_RST})" |
72 | 72 |
else |