diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-06 11:38:05 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-06 11:38:05 +0300 |
commit | 55a27c1f07f2f1d8225fce6935fc0d5503d63f34 (patch) | |
tree | f95b7718b5cb827a87074d457ddb8cba05970be2 | |
parent | 5bd389e707aff21ef43413e1272965bf375ab197 (diff) |
add POWERLEVEL9K_DEBUG_DUMP_STATE to aid in debugging #244
-rwxr-xr-x | internal/p10k.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2dd51fa9..cd67dcf6 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3359,6 +3359,10 @@ _p9k_save_status() { function _p9k_dump_state() { is-at-least 5.4 || return # `typeset -g` doesn't roundtrip in zsh prior to 5.4. + if [[ $POWERLEVEL9K_DEBUG_DUMP_STATE == true && -z $__p9k_debug_dump_state ]]; then + __p9k_debug_dump_state=done + setopt xtrace + fi local dir=${__p9k_dump_file:h} [[ -d $dir ]] || mkdir -pm 0700 $dir || return [[ -w $dir ]] || return |