From 2a5be2aa58520254e68f2d2c9d40d01069ff0160 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 11 Apr 2026 15:10:34 +0300 Subject: [PATCH] =?UTF-8?q?refactor(shell):=20=D0=BC=D0=B8=D0=BD=D0=B8?= =?UTF-8?q?=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F=20=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=81=D0=B8=D1=8F=20zsh=20=D0=B4=D0=BB=D1=8F=20starship=20?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20p10k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Обеспечивает, что скрипт будет работать только при версии zsh 5.8+ * Улучшает отказоустойчивость путем предотвращения сбоев на устаревших оболочках --- 05-start.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/05-start.zsh b/05-start.zsh index 908d42f..dbefc1a 100644 --- a/05-start.zsh +++ b/05-start.zsh @@ -7,6 +7,7 @@ # (password prompts, [y/n] confirmations, etc.) # must go above this block; everything else may go below. +autoload -Uz is-at-least ! is-at-least 5.8 && return command -v starship >/dev/null && return