From 843dcf016710a4fe39f8ad65da2929f9128436fd Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Sun, 2 Oct 2022 18:34:25 +0200 Subject: survive broken FPATH (#10 --- config/p10k-classic.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/p10k-classic.zsh') diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 12ba3c0b..459c243b 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -20,7 +20,7 @@ unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' # Zsh >= 5.1 is required. - autoload -Uz is-at-least && is-at-least 5.1 || return + [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return # The list of segments shown on the left. Fill it with the most important segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( -- cgit v1.2.3