рефакторинг(zsh): улучшить стабильность Zsh при запуске

*   Добавлены проверки минимальной версии Zsh для повышения надежности
*   Оптимизирована логика загрузки Powerlevel10k
*   Внедрена быстрая проверка Starship
This commit is contained in:
2026-04-11 14:32:49 +03:00
parent ef8685b3bb
commit 8b06929bc2
2 changed files with 19 additions and 14 deletions

View File

@@ -6,6 +6,10 @@
# Initialization code that may require console input
# (password prompts, [y/n] confirmations, etc.)
# must go above this block; everything else may go below.
! is-at-least 5.8 && return
command -v starship >/dev/null && return
if [ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]; then
source "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh"
fi