diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-20 11:36:41 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-20 11:36:41 +0300 |
commit | d17f22e5b0f803c7b95eb379be0a810552a3a30a (patch) | |
tree | 2046f114f4cf8082d80841227e261e931eca4cf9 /powerlevel10k.zsh-theme | |
parent | cb2473751e1b2ec8c02721f8ad5911968b05c647 (diff) |
better handling of XDG_CACHE_HOME changes
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r-- | powerlevel10k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme index 1808552c..b2bb0954 100644 --- a/powerlevel10k.zsh-theme +++ b/powerlevel10k.zsh-theme @@ -27,7 +27,7 @@ return fi typeset -gr __p9k_dump_file=${XDG_CACHE_HOME:-~/.cache}/p10k-dump-${(%):-%n}.zsh - if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then + if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && (( ! $+functions[_p9k_preinit] )) && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then _p9k_preinit fi typeset -gr __p9k_sourced=1 |