1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00
This commit is contained in:
romkatv 2019-03-01 19:11:29 +01:00
parent 4c8f483cb5
commit 3122bec34b

View file

@ -135,6 +135,8 @@ if [[ $POWERLEVEL9K_USE_CACHE == true ]]; then
# Note that an attempt to retrieve the value right away won't succeed. All requested # Note that an attempt to retrieve the value right away won't succeed. All requested
# cache update get batched and flushed together after a prompt is built. # cache update get batched and flushed together after a prompt is built.
_p9k_cache_set() { _p9k_cache_set() {
# Uncomment to see cache misses.
# echo "cache: ${(qq)1} => ${(qq)2}" >&2
echo -E "_p9k_cache_data+=(${(qq)1} ${(qq)2})" >>$_P9K_CACHE_CHANNEL echo -E "_p9k_cache_data+=(${(qq)1} ${(qq)2})" >>$_P9K_CACHE_CHANNEL
_P9K_RETVAL=$2 _P9K_RETVAL=$2
} }