cleaned up for repetition

This commit is contained in:
Stefen Auris 2021-07-08 18:14:08 -04:00
parent 408e572d43
commit aa27f2900e

11
init.sh
View file

@ -6,8 +6,7 @@ if [[ $answer = "U" ]] || [[ $answer = "u" ]]; then
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
bash odeps.sh
else
echo "Aborting!"
exit 1
echo "Skipping!"
fi
#setup shell
@ -37,7 +36,6 @@ stow prezto
stow config
chmod 0700 ~/.ssh
chmod -R 0600 ~/.ssh/*
#cp "$HOME/stevset/mc" "$HOME/.config/mc"
#Configure git user
echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer
@ -49,12 +47,11 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
fi
#install spacevim
if [ ! -e ~/.space-vim ]
then
mv "$HOME/.vim" "$HOME/vim_bk"
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
if [ ! -e ~/.space-vim ]; then
echo "Install SpaceVim now? y/n"; read -r answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
mv "$HOME/.vim" "$HOME/vim_bk"
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
(curl -sLf https://spacevim.org/install.sh | bash)
fi
fi