mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Load plugins before custom config
This allows the custom config to override or change the config set by the plugins.
This commit is contained in:
parent
cb21b455e6
commit
ea0da158aa
1 changed files with 4 additions and 4 deletions
|
|
@ -7,13 +7,13 @@ fpath=($ZSH/functions $fpath)
|
||||||
# TIP: Add files you don't want in git to .gitignore
|
# TIP: Add files you don't want in git to .gitignore
|
||||||
for config_file ($ZSH/lib/*.zsh) source $config_file
|
for config_file ($ZSH/lib/*.zsh) source $config_file
|
||||||
|
|
||||||
# Load all of your custom configurations from custom/
|
|
||||||
for config_file ($ZSH/custom/*.zsh) source $config_file
|
|
||||||
|
|
||||||
# Load all of the plugins that were defined in ~/.zshrc
|
# Load all of the plugins that were defined in ~/.zshrc
|
||||||
plugin=${plugin:=()}
|
plugin=${plugin:=()}
|
||||||
for plugin ($plugins) source $ZSH/plugins/$plugin.plugin.zsh
|
for plugin ($plugins) source $ZSH/plugins/$plugin.plugin.zsh
|
||||||
|
|
||||||
|
# Load all of your custom configurations from custom/
|
||||||
|
for config_file ($ZSH/custom/*.zsh) source $config_file
|
||||||
|
|
||||||
# Check for updates on initial load...
|
# Check for updates on initial load...
|
||||||
if [ "$DISABLE_AUTO_UPDATE" = "true" ]
|
if [ "$DISABLE_AUTO_UPDATE" = "true" ]
|
||||||
then
|
then
|
||||||
|
|
@ -22,4 +22,4 @@ else
|
||||||
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
|
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset config_file
|
unset config_file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue