honor POWERLEVEL9K_MAX_CACHE_SIZE

pull/22/head
romkatv 6 years ago
parent a0d2449c43
commit c9ee989e38

@ -131,6 +131,7 @@ _p9k_cache_set() {
# echo "caching: ${(@0q)_P9K_CACHE_KEY} => (${(q)@})" >&2
_P9K_CACHE[$_P9K_CACHE_KEY]="${(pj:\0:)*}"
_P9K_CACHE_VAL=("$@")
(( #_P9K_CACHE < POWERLEVEL9K_MAX_CACHE_SIZE )) || typeset -gAH _P9K_CACHE=()
}
_p9k_cache_get() {

Loading…
Cancel
Save