check for spacevim before installing

This commit is contained in:
Stefen Auris 2019-03-26 15:45:40 -04:00
parent 76075d96c9
commit 905f4be6c4

12
init.sh
View file

@ -26,15 +26,17 @@ fi
#install spacevim
echo "Installing Space VIM!"
mv "$HOME/.vim" "$HOME/.vim_bk"
mv "$HOME/.vimrc" "$HOME/.vimrc_bk"
curl -sLf https://spacevim.org/install.sh | bash
if [ ! -d ~/.space-vim ]
then
mv "$HOME/.vim" "$HOME/.vim_bk"
mv "$HOME/.vimrc" "$HOME/.vimrc_bk"
curl -sLf https://spacevim.org/install.sh | bash
fi
#init spacemacs in the background
echo "Installing Spacemacs!"
if [ ! -d ~/.emacs.d ]
then
echo "installing spacemacs"
./spacemacs.zsh
fi