diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-05-27 19:57:44 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-05-27 19:57:44 +0300 |
commit | d1e5fd27eedb8153ebe0f49fdc1788b10c695618 (patch) | |
tree | 514166f201bb64dff071b10df48947f47dfdb44f | |
parent | f9801b339e3bea182e40a677df9536c28f29b06c (diff) |
add a workaround for old buggy purepower configs
-rwxr-xr-x | powerlevel9k.zsh-theme | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index e7fb8a45..7e792cd4 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -137,6 +137,7 @@ _p9k_cache_get() { _p9k_get_icon() { local var_name=POWERLEVEL9K_$1 _P9K_RETVAL=${(g::)${${(P)var_name}-$icons[$1]}} + [[ $_P9K_RETVAL != $'\b'? ]] || _P9K_RETVAL="%{$_P9K_RETVAL%}" # penance for past sins } typeset -ga _P9K_LEFT_JOIN=(1) |