From 4faa24a23ddef72187267ef1e03ef7573a6ae377 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 3 Oct 2019 20:42:35 +0200 Subject: [PATCH] require zsh >= 5.4 for state dumps --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2b6519df..08f5f95a 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -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