diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-17 23:23:14 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-17 23:23:14 +0300 |
commit | 164fcad55863a9f05de863cd965d182fcf676234 (patch) | |
tree | 9a3ac156497703774717213133cd092607213529 /internal | |
parent | 727b48381039e2028a8f2e1daf88ea39e800a87b (diff) |
save git prompt in ephemeral cache
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index d1ba6eeb..6571e97e 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -2698,7 +2698,7 @@ function _p9k_vcs_render() { cache_key+=$VCS_STATUS_COMMIT fi - if ! _p9k_cache_get "$state" "${(@)cache_key}"; then + if ! _p9k_cache_ephemeral_get "$state" "${(@)cache_key}"; then local icon local content @@ -2805,7 +2805,7 @@ function _p9k_vcs_render() { 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 _p9k_prompt_segment "$_p9k_cache_val[@]" |