check for spacevim before installing
This commit is contained in:
parent
76075d96c9
commit
905f4be6c4
1 changed files with 7 additions and 5 deletions
12
init.sh
12
init.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue