From 8f5a2e86de77b31ef6937077d509df6daf2c111d Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Sat, 1 Oct 2011 16:32:18 +0300 Subject: [PATCH] zshrc: More intelligent sourcing. --- zshrc | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index 51059a97..e0eac1f6 100644 --- a/zshrc +++ b/zshrc @@ -41,7 +41,18 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' # Sources everything. -source ~/.zsh_aliases -source ~/.zshenv -source ~/.zsh_functions -source ~/.zsh_tmux +if [ -f ~/.zsh_aliases ]; then + source ~/.zsh_aliases +fi + +if [ -f ~/.zshenv ]; then + source ~/.zshenv +fi + +if [ -f ~/.zsh_functions ]; then + source ~/.zsh_functions +fi + +if [ -f ~/.zsh_tmux ]; then + source ~/.zsh_tmux +fi