From 8a2c4139ab0b050a90409f812c7c9c543ae7d719 Mon Sep 17 00:00:00 2001 From: pztrn Date: Sat, 21 Mar 2015 16:34:10 +0500 Subject: [PATCH] Exports fix, it should not produce warnings. --- zsh/10-exports.zsh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/zsh/10-exports.zsh b/zsh/10-exports.zsh index aca593f..4ba51f1 100644 --- a/zsh/10-exports.zsh +++ b/zsh/10-exports.zsh @@ -2,9 +2,11 @@ for config_file in `ls ${CONFIG_PATH}/zsh/exports | sort`; do source ${CONFIG_PATH}/zsh/exports/${config_file} done -for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do - if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then - source ${HOME}/.zsh-config.d/exports/${config_file} - fi -done +if [ -d ${HOME}/.zsh-config.d/exports ]; then + for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do + if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then + source ${HOME}/.zsh-config.d/exports/${config_file} + fi + done +fi