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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue