From 1b268e7c282e08fa084b0a3e2609c018530d37f7 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Fri, 27 May 2011 11:53:54 -0500 Subject: [PATCH] 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 --- bash_it.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.17.1