* Добавлены проверки минимальной версии Zsh для повышения надежности * Оптимизирована логика загрузки Powerlevel10k * Внедрена быстрая проверка Starship
17 lines
502 B
Bash
17 lines
502 B
Bash
# shellcheck shell=bash
|
|
# vim: ft=sh
|
|
|
|
# Enable Powerlevel10k instant prompt.
|
|
# Should stay close to the top of ~/.config/zsh/.zshrc.
|
|
# 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
|
|
|