Add filtering to the $2 input in addition to $1
parent
5b8f8d874e
commit
7b32dd6424
|
|
@ -19,7 +19,7 @@ if [ "$1" != "false" ] && [ -d "./enabled" ]; then
|
||||||
fi
|
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
|
# TODO: We should warn users they're using legacy enabling
|
||||||
for _bash_it_config_file in $(sort <(compgen -G "./${2}/enabled/*.bash")); do
|
for _bash_it_config_file in $(sort <(compgen -G "./${2}/enabled/*.bash")); do
|
||||||
if [ -e "$_bash_it_config_file" ]; then
|
if [ -e "$_bash_it_config_file" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue