From 2bb3805d34349d87fe05993d849207adc899d551 Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Tue, 28 Dec 2010 20:48:15 +0100 Subject: [PATCH] + zsh_command_not_found and better source include --- zshrc | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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