Files
ansible-repo/templates/.zshrc.j2
hogweed1 000f25007c
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
well,
2026-11-05 01:43:51 +10:00

30 lines
1.0 KiB
Django/Jinja
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Отключаем технический вывод p10k (скрывает сообщения о скачивании gitstatusd)
typeset -g POWERLEVEL9K_GITSTATUS_QUIET=true
# 1. Instant Prompt (ускоряет отрисовку p10k)
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# 2. Путь к Oh My Zsh (Ansible подставит правильный хоум для root или юзера)
export ZSH="{{ user_home }}/.oh-my-zsh"
# 3. ОТКЛЮЧЕНИЕ АВТООБНОВЛЕНИЙ OMZ
DISABLE_AUTO_UPDATE="true"
# 4. Активация темы Powerlevel10k
ZSH_THEME="powerlevel10k/powerlevel10k"
# 5. Список плагинов
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
# 6. Запуск Oh My Zsh
source $ZSH/oh-my-zsh.sh
# 7. Подгрузка тихого конфига p10k (мастер настройки НЕ запустится)
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh