From aa27f2900e3f05ffa83ccae46a226343fbfe0375 Mon Sep 17 00:00:00 2001 From: steveokard Date: Thu, 8 Jul 2021 18:14:08 -0400 Subject: [PATCH] cleaned up for repetition --- init.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/init.sh b/init.sh index 72c6e92..c0b52f4 100755 --- a/init.sh +++ b/init.sh @@ -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