Create plugins/enabled directory if it doesn't already exist

- This fixes a bug I saw after installing bash-it on Mac OS X 10.6.8.
  During bash-it installation I chose not to install any plugins. After
  install, when `bash-it enable plugin foo` was complaining that the
  enabled directory did not exist.
pull/193/head
Dave Paroulek 2013-03-25 08:36:27 -04:00
parent 743be0cd2d
commit 75dbdaf274
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ _enable-thing ()
return
fi
mkdir -p $BASH_IT/$subdirectory/enabled
ln -s $BASH_IT/$subdirectory/available/$plugin $BASH_IT/$subdirectory/enabled/$plugin
fi