51c55ad17e23db89e72424add0c34fa20654cd8f

Author
Jim Myhrberg <contact@jimeh.me>
Committer
Jim Myhrberg <contact@jimeh.me>
Date

Message

Suppress "zsh: no matches found" error when $ZSH_CUSTOM has no files

The addition of `(.N)` enables the `NULL_GLOB` option which suppresses
the error output in question.

Reference: http://www.zsh.org/mla/users/2004/msg00621.html

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index 732a403b74c7f04ee2f283feb5b851c19c173889..e360344b096676864471314519f9637f67655ad4 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -51,7 +51,7 @@ for plugin ($plugins); do
 6 done
 7 
 8 # Load all of your custom configurations from custom/
 9-for config_file ($ZSH_CUSTOM/*.zsh) source $config_file
10+for config_file ($ZSH_CUSTOM/*.zsh(.N)) source $config_file
11 
12 # Load the theme
13 if [ "$ZSH_THEME" = "random" ]