From 5210a74dddfb2ddc9c96cbda83fb7ae252957417 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Wed, 4 Nov 2026 00:47:07 +1000 Subject: [PATCH] well, --- environments/just-created/hosts.yml | 3 ++- files/.p10k.zsh | 0 playbooks/zsh.yml | 0 templates/.zshrc.j2 | 23 +++++++++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 files/.p10k.zsh create mode 100644 playbooks/zsh.yml create mode 100644 templates/.zshrc.j2 diff --git a/environments/just-created/hosts.yml b/environments/just-created/hosts.yml index e4b6135..e64fe1e 100644 --- a/environments/just-created/hosts.yml +++ b/environments/just-created/hosts.yml @@ -18,7 +18,8 @@ all: # keys must be unique, i.e. only one 'hosts' per group #gpu-visor.guaranteedstruggle.host: lxc: # keys must be unique, i.e. only one 'hosts' per group hosts: - seafile.guaranteedstruggle.host: + atuin.guaranteedstruggle.host: + #seafile.guaranteedstruggle.host: #victorialogs.guaranteedstruggle.host: # speaking-slut.guaranteedstruggle.host: #proxcenter.guaranteedstruggle.host: diff --git a/files/.p10k.zsh b/files/.p10k.zsh new file mode 100644 index 0000000..e69de29 diff --git a/playbooks/zsh.yml b/playbooks/zsh.yml new file mode 100644 index 0000000..e69de29 diff --git a/templates/.zshrc.j2 b/templates/.zshrc.j2 new file mode 100644 index 0000000..990b4d6 --- /dev/null +++ b/templates/.zshrc.j2 @@ -0,0 +1,23 @@ +# Включаем 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 + +# Путь к Oh My Zsh (Ansible сам подставит правильный хоум во время раскатки) +export ZSH="{{ user_home }}/.oh-my-zsh" + +# Указываем тему оформления +ZSH_THEME="powerlevel10k/powerlevel10k" + +# Твой список плагинов из Puppet-класса +plugins=( + git + zsh-syntax-highlighting + zsh-autosuggestions +) + +# Запуск Oh My Zsh +source $ZSH/oh-my-zsh.sh + +# Загрузка готового конфига p10k (если он есть), чтобы пропустить интерактивный опрос +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh