mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
* test if 'custom' exists before we try to read from it
* this is to avoid an error message when we enter zsh ;)
This commit is contained in:
parent
cd4d2c8163
commit
d631d8ab5a
1 changed files with 4 additions and 2 deletions
|
|
@ -8,7 +8,9 @@ fpath=($ZSH/functions $fpath)
|
|||
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
|
||||
if [ -d "$ZSH/custom" ]; then
|
||||
for config_file ($ZSH/custom/*.zsh) source $config_file
|
||||
fi
|
||||
|
||||
# Load all of the plugins that were defined in ~/.zshrc
|
||||
plugin=${plugin:=()}
|
||||
|
|
@ -22,4 +24,4 @@ else
|
|||
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
|
||||
fi
|
||||
|
||||
unset config_file
|
||||
unset config_file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue