Use find instead of ls.
This commit is contained in:
+4
-2
@@ -1,9 +1,11 @@
|
||||
for config_file in `ls ${CONFIG_PATH}/zsh/exports | sort`; do
|
||||
# Some default exports. They could be based on configuration variables.
|
||||
for config_file in `find ${CONFIG_PATH}/zsh/exports -type f | sort`; do
|
||||
source ${CONFIG_PATH}/zsh/exports/${config_file}
|
||||
done
|
||||
|
||||
# We should import user-specific exports and use them.
|
||||
if [ -d ${HOME}/.zsh-config.d/exports ]; then
|
||||
for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do
|
||||
for config_file in `find ${HOME}/.zsh-config.d/exports -type f | sort`; do
|
||||
if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then
|
||||
source ${HOME}/.zsh-config.d/exports/${config_file}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user