Avoid error if nothing exists in zshrc.d.

This commit is contained in:
David Tomaschik
2019-08-19 14:53:40 -07:00
parent 4d2d8c89f6
commit dc621af59d

View File

@@ -59,7 +59,8 @@ bindkey '^r' history-incremental-search-backward
# Source extras and aliases if interactive # Source extras and aliases if interactive
if [[ $- == *i* ]] ; then if [[ $- == *i* ]] ; then
if [[ -e $HOME/.aliases ]] ; then source $HOME/.aliases ; fi if [[ -e $HOME/.aliases ]] ; then source $HOME/.aliases ; fi
for file in $HOME/.zshrc.d/* ; do source "$file" ; done # zsh-only-ism to avoid error if glob doesn't expand
for file in $HOME/.zshrc.d/*(N) ; do source "$file" ; done
fi fi
# In case ack is named ack-grep # In case ack is named ack-grep