From d17f22e5b0f803c7b95eb379be0a810552a3a30a Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 20 Oct 2019 10:36:41 +0200 Subject: better handling of XDG_CACHE_HOME changes --- powerlevel10k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powerlevel10k.zsh-theme') 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 -- cgit v1.2.3