1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

require zsh >= 5.4 for state dumps

This commit is contained in:
romkatv 2019-10-03 20:42:35 +02:00
parent de00d42d6e
commit 4faa24a23d

View file

@ -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