From: Mark Szymanski Date: Fri, 27 May 2011 16:53:54 +0000 (-0500) Subject: Initialize enabled directory if it doesn't exist X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=1b268e7c282e08fa084b0a3e2609c018530d37f7;p=common%2Fbash_it.git 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 --- diff --git a/bash_it.sh b/bash_it.sh index e0cc579..b3cdb73 100644 --- a/bash_it.sh +++ b/bash_it.sh @@ -25,6 +25,11 @@ do done # Plugins +if [ ! -d "plugins/enabled" ] +then + mkdir "${BASH}/plugins/enabled" + ln -s ${BASH}/plugins/available/* "${BASH}/plugins/enabled" +fi PLUGINS="${BASH}/plugins/enabled/*.bash" for config_file in $PLUGINS do