Enable globstar in custom directory finding

pull/1731/head
Noah Gorny 2020-12-07 01:05:31 +02:00
parent d448ea8cf1
commit 079f89bcf5
1 changed files with 3 additions and 0 deletions

View File

@ -100,7 +100,10 @@ done
# Custom
BASH_IT_LOG_PREFIX="core: main: "
_log_debug "Loading general custom files..."
# We use globstar here
shopt -s globstar
CUSTOM="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/*.bash ${BASH_IT_CUSTOM:=${BASH_IT}/custom}/**/*.bash"
shopt -u globstar
for _bash_it_config_file in $CUSTOM
do
if [ -e "${_bash_it_config_file}" ]; then