cleaned up spacemacs

This commit is contained in:
Stefen Auris 2020-01-21 15:43:45 -05:00
parent 59b7e1b5c4
commit 7152a7b202
4 changed files with 7 additions and 354 deletions

19
init.sh
View file

@ -12,7 +12,7 @@ fi
#setup prezto
echo "Initializing Prezto"
zsh prezto.zsh
(zsh prezto.zsh)
#fix permissions to avoid compaudit flag
chmod -R go-w ~/.zprezto
@ -22,7 +22,6 @@ mkdir ~/.config/systemd/user/
echo "Stowing Configs"
stow tmux
stow vim
stow emacs
stow prezto
stow config
chmod 0700 ~/.ssh
@ -38,20 +37,16 @@ fi
#install spacevim
echo "Installing Space VIM!"
if [ ! -d ~/.space-vim ]
if [ ! -e ~/.space-vim ]
then
mv "$HOME/.vim" "$HOME/.vim_bk"
mv "$HOME/.vimrc" "$HOME/.vimrc_bk"
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
ln -s "$HOME/stevset/emacs/.spacemacs" "$HOME/.spacemacs"
git clone https://github.com/syl20bnr/spacemacs "$HOME/.emacs.d"
fi
#install Emacs Doom
echo "Installing Emacs DOOM! (might take awhile)"
(zsh emacs_doom.zsh)
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then