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

27 lines
882 B
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.

# 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