mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
require zsh >= 5.4 for state dumps
This commit is contained in:
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…
Reference in New Issue
Block a user