1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 05:40:07 +00:00

add a workaround for old buggy purepower configs

This commit is contained in:
romkatv 2019-05-27 18:57:44 +02:00
parent f9801b339e
commit d1e5fd27ee

View file

@ -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)