From c04536ce701aa496d6169d38fffe6d9709ce3455 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 19 Mar 2019 23:39:07 +0100 Subject: [PATCH] restore "loading" git status --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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