Files
zsh/05-start.zsh
Andrey Astafyev 2a5be2aa58 refactor(shell): минимальная версия zsh для starship или p10k
* Обеспечивает, что скрипт будет работать только при версии zsh 5.8+
* Улучшает отказоустойчивость путем предотвращения сбоев на устаревших
оболочках
2026-04-11 15:12:50 +03:00

18 lines
527 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.
autoload -Uz is-at-least
! 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