diff --git a/zshrc b/zshrc index 370fc51..b64b9d3 100644 --- a/zshrc +++ b/zshrc @@ -4,11 +4,19 @@ # the main RC file (will be linked to ~/.zshrc) # -source ~/.zsh/options -source ~/.zsh/prompt -source ~/.zsh/aliases -source ~/.zsh/functions -source ~/.zsh/private -source ~/.zsh/completion -source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +typeset -ga sources +sources+="$HOME/.zsh/options" +sources+="$HOME/.zsh/prompt" +sources+="$HOME/.zsh/functions" +sources+="$HOME/.zsh/private" +sources+="$HOME/.zsh/aliases" +sources+="$HOME/.zsh/completion" +sources+="$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" +sources+="/etc/zsh_command_not_found" + +foreach file (`echo $sources`) + if [[ -a $file ]]; then + source $file + fi +end