mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
Move custon *.zsh file sourcing up so that they can load plugins and other things that come after.
This commit is contained in:
parent
8652fd64ef
commit
a28dbc8393
1 changed files with 5 additions and 6 deletions
11
oh-my-zsh.sh
11
oh-my-zsh.sh
|
@ -29,6 +29,11 @@ for config_file ($ZSH/lib/*.zsh); do
|
||||||
source $config_file
|
source $config_file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Load all of your custom configurations from custom/
|
||||||
|
for config_file ($ZSH_CUSTOM/*.zsh(N)); do
|
||||||
|
source $config_file
|
||||||
|
done
|
||||||
|
unset config_file
|
||||||
|
|
||||||
is_plugin() {
|
is_plugin() {
|
||||||
local base_dir=$1
|
local base_dir=$1
|
||||||
|
@ -72,12 +77,6 @@ for plugin ($plugins); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Load all of your custom configurations from custom/
|
|
||||||
for config_file ($ZSH_CUSTOM/*.zsh(N)); do
|
|
||||||
source $config_file
|
|
||||||
done
|
|
||||||
unset config_file
|
|
||||||
|
|
||||||
# Load the theme
|
# Load the theme
|
||||||
if [ "$ZSH_THEME" = "random" ]; then
|
if [ "$ZSH_THEME" = "random" ]; then
|
||||||
themes=($ZSH/themes/*zsh-theme)
|
themes=($ZSH/themes/*zsh-theme)
|
||||||
|
|
Loading…
Reference in a new issue