mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
same as last commit, but more! plugin sourcing.
This commit is contained in:
parent
abb32b0209
commit
198d57d788
1 changed files with 9 additions and 8 deletions
17
omz
17
omz
|
|
@ -44,14 +44,15 @@ omz() {
|
||||||
compinit -i
|
compinit -i
|
||||||
|
|
||||||
# load plugins (TODO: Make this slimmer and better)
|
# load plugins (TODO: Make this slimmer and better)
|
||||||
for plugin ($plugins); do
|
for plugin ($fpath/*.plugin.zsh(N)) source $plugin
|
||||||
plugin_sub=$(echo $plugin|cut -d'/' -f2)
|
# for plugin ($plugins); do
|
||||||
if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
# plugin_sub=$(echo $plugin|cut -d'/' -f2)
|
||||||
source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
|
# if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
||||||
elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
# source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
|
||||||
source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
|
# elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
||||||
fi
|
# source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
|
||||||
done
|
# fi
|
||||||
|
# done
|
||||||
|
|
||||||
local theme
|
local theme
|
||||||
zstyle -a :omz:style theme theme
|
zstyle -a :omz:style theme theme
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue