aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-20 01:39:07 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-20 01:39:07 +0300
commitc04536ce701aa496d6169d38fffe6d9709ce3455 (patch)
treed6827aa63286fc746482ac673384fa6cb2f68f6c /powerlevel9k.zsh-theme
parentea13f92993777e90b5b277d298b64b99f160c29c (diff)
restore "loading" git status
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index a57ef693..78cb2d67 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1625,7 +1625,7 @@ function _p9k_vcs_render() {
[[ $#msg != 0 || $dir == / ]] && break
dir=${dir:h}
done
- (( $#msg )) || msg=(loading)
+ [[ $#msg -gt 1 || -n ${msg[0]} ]] || msg=(loading)
$2_prompt_segment $1_LOADING $3 "${vcs_states[loading]}" "$DEFAULT_COLOR" '' 0 '' "${msg[@]}"
return 0
fi