mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
add POWERLEVEL9K_DEBUG_DUMP_STATE to aid in debugging #244
This commit is contained in:
parent
5bd389e707
commit
55a27c1f07
@ -3359,6 +3359,10 @@ _p9k_save_status() {
|
|||||||
|
|
||||||
function _p9k_dump_state() {
|
function _p9k_dump_state() {
|
||||||
is-at-least 5.4 || return # `typeset -g` doesn't roundtrip in zsh prior to 5.4.
|
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}
|
local dir=${__p9k_dump_file:h}
|
||||||
[[ -d $dir ]] || mkdir -pm 0700 $dir || return
|
[[ -d $dir ]] || mkdir -pm 0700 $dir || return
|
||||||
[[ -w $dir ]] || return
|
[[ -w $dir ]] || return
|
||||||
|
Loading…
Reference in New Issue
Block a user