mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-17 17:28:07 +00:00
feat: update plugin loading
This commit is contained in:
17
.zshrc
17
.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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user