Initialize enabled directory if it doesn't exist

This is to make bash_it work in a new install after
the plugins/enabled directory was ignored
pull/50/head
Mark Szymanski 2011-05-27 11:53:54 -05:00
parent 4898fa9119
commit 1b268e7c28
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ do
done done
# Plugins # Plugins
if [ ! -d "plugins/enabled" ]
then
mkdir "${BASH}/plugins/enabled"
ln -s ${BASH}/plugins/available/* "${BASH}/plugins/enabled"
fi
PLUGINS="${BASH}/plugins/enabled/*.bash" PLUGINS="${BASH}/plugins/enabled/*.bash"
for config_file in $PLUGINS for config_file in $PLUGINS
do do