1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

save git prompt in ephemeral cache

This commit is contained in:
romkatv 2019-10-17 22:23:14 +02:00
parent 727b483810
commit 164fcad558

View file

@ -2698,7 +2698,7 @@ function _p9k_vcs_render() {
cache_key+=$VCS_STATUS_COMMIT cache_key+=$VCS_STATUS_COMMIT
fi fi
if ! _p9k_cache_get "$state" "${(@)cache_key}"; then if ! _p9k_cache_ephemeral_get "$state" "${(@)cache_key}"; then
local icon local icon
local content local content
@ -2805,7 +2805,7 @@ function _p9k_vcs_render() {
fi fi
fi fi
_p9k_cache_set "prompt_vcs_$state" "${__p9k_vcs_states[$state]}" "$_p9k_color1" "$icon" 0 '' "$content" _p9k_cache_ephemeral_set "prompt_vcs_$state" "${__p9k_vcs_states[$state]}" "$_p9k_color1" "$icon" 0 '' "$content"
fi fi
_p9k_prompt_segment "$_p9k_cache_val[@]" _p9k_prompt_segment "$_p9k_cache_val[@]"