diff options
author | Jim Myhrberg <contact@jimeh.me> | 2012-05-06 11:08:34 +0100 |
---|---|---|
committer | Jim Myhrberg <contact@jimeh.me> | 2012-05-06 11:08:34 +0100 |
commit | 51c55ad17e23db89e72424add0c34fa20654cd8f (patch) | |
tree | eb1ba24509420cee7ea0273cf24ab1fbcad29eaf /oh-my-zsh.sh | |
parent | 1120f973054836eeb53750f57d69fbec41a340dc (diff) | |
download | zsh-51c55ad17e23db89e72424add0c34fa20654cd8f.tar.gz zsh-51c55ad17e23db89e72424add0c34fa20654cd8f.tar.bz2 zsh-51c55ad17e23db89e72424add0c34fa20654cd8f.zip |
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
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 732a403b7..e360344b0 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -51,7 +51,7 @@ for plugin ($plugins); do done # Load all of your custom configurations from custom/ -for config_file ($ZSH_CUSTOM/*.zsh) source $config_file +for config_file ($ZSH_CUSTOM/*.zsh(.N)) source $config_file # Load the theme if [ "$ZSH_THEME" = "random" ] |