Added logic to create .vim folder if it doesn't exist.

This commit is contained in:
natsmith9 2017-05-29 20:53:23 +00:00
parent 228aa69bf2
commit e5395b1a4f
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,14 @@ for file in $files; do
ln -s $dir/$file ~/.$file
done
# check to see if .vim folder exists. if not, make directory
if [ ! -d "~/.vim" ]; then
echo "Making .vim directory."
mkdir ~/.vim
echo "...done"
fi
# make vim autoload and bundle directories, install pathogen and clone Vim Sensible and Solarized Vim colors
echo "Making Vim autoload and bundle directories"
mkdir ~/.vim/autoload ~/.vim/bundle