From 079f89bcf5b8b8d78b999d41eb30390cc7c72145 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Mon, 7 Dec 2020 01:05:31 +0200 Subject: [PATCH] Enable globstar in custom directory finding --- bash_it.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash_it.sh b/bash_it.sh index 310aae42..32ce9926 100755 --- a/bash_it.sh +++ b/bash_it.sh @@ -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