script cleanup

This commit is contained in:
Stefen Auris 2020-12-28 05:41:24 -05:00
parent a8cd608f8a
commit d726a6812c
4 changed files with 27 additions and 25 deletions

31
init.sh
View file

@ -1,6 +1,6 @@
#!/bin/bash
#install pre-req.
echo -n "Which Linux flavor will we be installing programs for? (u/o)"; read answer
echo -n "Which Linux flavor will we be installing programs for? (u/o)"; read -r answer
if [[ $answer = "U" ]] || [[ $answer = "u" ]]; then
bash udeps.sh
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
@ -11,7 +11,7 @@ else
fi
#setup prezto
echo "Select which shell to configure and use:"; read answer
echo "Select which shell to configure and use: zsh/fish/bash"; read -r answer
if [[ $answer = "zsh" ]] || [[ $answer = "z" ]]; then
echo "Initializing Prezto"
zsh prezto.zsh
@ -35,27 +35,30 @@ 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
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
echo -n "What is your git user name => "; read -r name
git config --global user.name "$name"
echo -n "What is your git email => "; read -r email
git config --global user.email "$email"
fi
#install spacevim
echo "Installing Space VIM!"
if [ ! -e ~/.space-vim ]
then
mv "$HOME/.vim" "$HOME/vim_bk"
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
(curl -sLf https://spacevim.org/install.sh | bash)
fi
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
echo -n "What is your git user name => "; read name
git config --global user.name "$name"
echo -n "What is your git email => "; read email
git config --global user.email "$email"
echo "Install SpaceVim now? y/n"; read -r answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
(curl -sLf https://spacevim.org/install.sh | bash)
fi
fi
#install Emacs Doom
echo "Install Emacs Doom now? y/n"; read answer
echo "Install Emacs Doom now? y/n"; read -r answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
zsh emacs_doom.zsh
./emacs_doom.sh
fi
echo "*******************************"