require zsh >= 5.4 for state dumps

pull/243/head
romkatv 5 years ago
parent de00d42d6e
commit 4faa24a23d

@ -3358,7 +3358,7 @@ _p9k_save_status() {
}
function _p9k_dump_state() {
is-at-least 5.3 || return
is-at-least 5.4 || return # `typeset -g` doesn't roundtrip in zsh prior to 5.4.
local dir=${__p9k_dump_file:h}
[[ -d $dir ]] || mkdir -pm 0700 $dir || return
[[ -w $dir && -z $dir(#qNR) ]] || return

Loading…
Cancel
Save