Changed enable all functionality to call recursive enable

pull/974/head
Nils Winkler 2017-05-10 11:12:04 +02:00
parent 74b15b6385
commit feb05b279b
1 changed files with 2 additions and 4 deletions

View File

@ -308,10 +308,8 @@ _enable-thing ()
typeset f $file_type
for f in $BASH_IT/$subdirectory/available/*.bash
do
plugin=$(basename $f)
if [ ! -h $BASH_IT/$subdirectory/enabled/$plugin ]; then
ln -s ../available/$plugin $BASH_IT/$subdirectory/enabled/$load_priority$BASH_IT_LOAD_PRIORITY_SEPARATOR$plugin
fi
plugin=$(basename -s .$file_type.bash $f)
_enable-thing $subdirectory $file_type $plugin $load_priority
done
else
typeset plugin=$(command ls $BASH_IT/$subdirectory/available/$file_entity.*bash 2>/dev/null | head -1)