From c7cf15dceb5622d6fd92ffb0c269557a1ec1b02a Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Tue, 7 Oct 2025 08:53:23 +0000 Subject: [PATCH] feat: update plugin loading --- .config/sofmani.yml | 4 ++-- .gitignore | 1 + .zshrc | 17 +++++++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.config/sofmani.yml b/.config/sofmani.yml index e3bf0f24..0756dfb4 100644 --- a/.config/sofmani.yml +++ b/.config/sofmani.yml @@ -527,8 +527,8 @@ install: tags: plugin opts: source: ~/.dotfiles/plugins - destination: ~/.local/share/zsh/plugins - flags: --delete + destination: ~/.local/share/zsh/ + # flags: --delete - name: mfaerevaag/wd type: git diff --git a/.gitignore b/.gitignore index a9e2db06..b1851c6b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ _local.zsh .device_uid plugins/.cache .config/local.tmux +var/log/sofmani diff --git a/.zshrc b/.zshrc index 6f8a29c7..881ea6b8 100644 --- a/.zshrc +++ b/.zshrc @@ -24,12 +24,17 @@ export DOTBIN="$HOME/.config/bin" export DOTBIN_META="$HOME/.config/.bin" # Load sofmani-managed zsh plugins -setopt +o nomatch -for plugin in ~/.local/share/zsh/plugins/**/*.plugin.zsh; do - [ -e "$plugin" ] && source "$plugin" -done -source ~/.local/share/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme -setopt -o nomatch + +load_plugins() { + setopt +o nomatch + for plugin in ~/.local/share/zsh/plugins/**/*.plugin.zsh; do + [ -e "$plugin" ] && source "$plugin" + done + source ~/.local/share/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme + setopt -o nomatch +} + +load_plugins wd() { . ~/.local/share/zsh/plugins/wd/wd.sh }