cleaned up for repetition
This commit is contained in:
parent
408e572d43
commit
aa27f2900e
1 changed files with 4 additions and 7 deletions
11
init.sh
11
init.sh
|
@ -6,8 +6,7 @@ if [[ $answer = "U" ]] || [[ $answer = "u" ]]; then
|
||||||
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
|
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
|
||||||
bash odeps.sh
|
bash odeps.sh
|
||||||
else
|
else
|
||||||
echo "Aborting!"
|
echo "Skipping!"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#setup shell
|
#setup shell
|
||||||
|
@ -37,7 +36,6 @@ stow prezto
|
||||||
stow config
|
stow config
|
||||||
chmod 0700 ~/.ssh
|
chmod 0700 ~/.ssh
|
||||||
chmod -R 0600 ~/.ssh/*
|
chmod -R 0600 ~/.ssh/*
|
||||||
#cp "$HOME/stevset/mc" "$HOME/.config/mc"
|
|
||||||
|
|
||||||
#Configure git user
|
#Configure git user
|
||||||
echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer
|
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
|
fi
|
||||||
|
|
||||||
#install spacevim
|
#install spacevim
|
||||||
if [ ! -e ~/.space-vim ]
|
if [ ! -e ~/.space-vim ]; then
|
||||||
then
|
|
||||||
mv "$HOME/.vim" "$HOME/vim_bk"
|
|
||||||
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
|
||||||
echo "Install SpaceVim now? y/n"; read -r answer
|
echo "Install SpaceVim now? y/n"; read -r answer
|
||||||
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
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)
|
(curl -sLf https://spacevim.org/install.sh | bash)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue