Test cases for loading from global directory

This commit is contained in:
Nils Winkler
2017-09-15 08:10:17 +02:00
parent fb6fcaeb06
commit 5210707da8
5 changed files with 115 additions and 15 deletions

View File

@@ -18,21 +18,6 @@ function _load_bash_it_files() {
fi
done
fi
# In the new structure
if [ -d "${BASH_IT}/enabled" ]
then
declare suffix
suffix=$(echo "$subdirectory" | sed -e 's/plugins/plugin/g')
FILES="${BASH_IT}/enabled/*.${suffix}.bash"
for config_file in $FILES
do
if [ -e "${config_file}" ]; then
source $config_file
fi
done
fi
}
# Function for reloading aliases