From 7b32dd64241599200a67c38ba1241d926c555be7 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Wed, 5 Dec 2018 21:54:59 -0600 Subject: [PATCH] Add filtering to the $2 input in addition to $1 --- scripts/reloader.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reloader.bash b/scripts/reloader.bash index e5cf178f..c26d3626 100644 --- a/scripts/reloader.bash +++ b/scripts/reloader.bash @@ -19,7 +19,7 @@ if [ "$1" != "false" ] && [ -d "./enabled" ]; then fi -if [ ! -z "${2}" ] && [ -d "${2}/enabled" ]; then +if [ ! -z "${2}" ] && [[ "${2}" =~ ^(aliases|completion|plugins)$ ]] && [ -d "${2}/enabled" ]; then # TODO: We should warn users they're using legacy enabling for _bash_it_config_file in $(sort <(compgen -G "./${2}/enabled/*.bash")); do if [ -e "$_bash_it_config_file" ]; then