Initialize enabled directory if it doesn't exist
authorMark Szymanski <mrman208@me.com>
Fri, 27 May 2011 16:53:54 +0000 (11:53 -0500)
committerMark Szymanski <mrman208@me.com>
Fri, 27 May 2011 16:53:54 +0000 (11:53 -0500)
This is to make bash_it work in a new install after
the plugins/enabled directory was ignored

bash_it.sh

index e0cc579..b3cdb73 100644 (file)
@@ -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