mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
I may have broken plugin loading. This should restore it. It will load a plugin out of ~/.omz first and if its not there /usr/share/oh-my-zsh
This commit is contained in:
parent
7161dcb2b4
commit
45b9fb9b07
1 changed files with 9 additions and 0 deletions
|
|
@ -22,6 +22,15 @@ if [[ -d ~/.omz ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# load plugins
|
||||
for plugin ($plugins); do
|
||||
if [[ -f ~/.omz/plugins/$plugin/$plugin.plugin.zsh ]]; then
|
||||
source ~/.omz/plugins/$plugin/$plugin.plugin.zsh
|
||||
elif [[ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]]; then
|
||||
source $ZSH/plugins/$plugin/$plugin.plugin.zsh
|
||||
fi
|
||||
done
|
||||
|
||||
# Load and run compinit
|
||||
autoload -U compinit
|
||||
compinit -i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue