Partial merge of ideas from github.com/toranb/dotfiles

This commit is contained in:
Stefen Auris 2017-08-15 14:36:15 -04:00
parent f0e925e441
commit 8212245774
10 changed files with 108 additions and 3 deletions

22
init.sh
View file

@ -2,8 +2,13 @@
#install pre-req.
echo "installing required packages"
sudo apt-get install tmux zsh vim powerline
#backup existing configs, if they exist
#remove existing configs, if they exist
rm -ri ~/.tmux.conf
rm -ri ~/.zsh-custom
rm -ri ~/.vimrc
rm -ri ~/.vim
rm -ri ~/.oh-my-zsh
rm -ri ~/.zshrc
#make links
#ln -s /home/`whoami`/stevset/.bash_aliases /home/`whoami`/.bash_aliases
#ln -s /home/`whoami`/stevset/.bashrc /home/`whoami`/.bashrc
@ -16,3 +21,16 @@ ln -s /home/`whoami`/stevset/.vimrc /home/`whoami`/.vimrc
#set new shell
echo "set new shell to zsh"
chsh -s /bin/zsh
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"
fi
echo "*******************************"
echo "* Restart your terminal *"
echo "*******************************"