dotfiles/INSTALL.sh

57 lines
1.6 KiB
Bash
Raw Normal View History

2015-12-21 18:51:28 +00:00
#!/bin/bash
2015-12-23 04:20:23 +00:00
2017-02-10 20:18:56 +00:00
# get initial directories setup
mv ~/bin/* $(pwd)/bin/
rm -rf ~/bin/
ln -s $(pwd)/bin ~/bin
if [[ $OSTYPE == darwin* ]]; then
~/bin/setup-usr-local.sh
fi
2017-02-10 20:18:56 +00:00
# install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# delete existing dotfiles
rm -rf ~/.bash_aliases
rm -rf ~/.gitconfig
rm -rf ~/.gitignore
2017-02-15 17:38:00 +00:00
rm -rf ~/.git_template
2017-02-10 20:18:56 +00:00
rm -rf ~/.hushlogin
rm -rf ~/.vim
rm -rf ~/.vimrc
rm -rf ~/.zshrc
rm -rf ~/.oh-my-zsh/themes/tyrel.zsh-theme
rm -rf ~/.pythonstartup.py
# set Symlinks to configs
2015-12-23 04:20:23 +00:00
ln -s $(pwd)/bash_aliases ~/.bash_aliases
ln -s $(pwd)/gitconfig ~/.gitconfig
ln -s $(pwd)/gitignore ~/.gitignore
2017-02-15 17:38:00 +00:00
ln -s $(pwd)/git_template ~/.git_template
2015-12-23 04:20:23 +00:00
ln -s $(pwd)/hushlogin ~/.hushlogin
ln -s $(pwd)/vim ~/.vim
ln -s $(pwd)/vimrc ~/.vimrc
ln -s $(pwd)/zshrc ~/.zshrc
2016-02-23 17:42:50 +00:00
ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme
2017-01-10 15:40:39 +00:00
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
2015-12-23 04:20:23 +00:00
2017-02-10 20:18:56 +00:00
# cleanup fish config
mkdir -p ~/.config/fish
rm -rf ~/.config/fish
ln -s $(pwd)/config/fish ~/.config/fish
2015-12-23 04:23:06 +00:00
# Setup vim
mkdir -p ~/.vim/bundle
2016-02-20 03:56:16 +00:00
cd ~/.vim/bundle
# Put Bundles Here
git clone https://github.com/kien/ctrlp.vim.git
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/danro/rename.vim.git
git clone https://github.com/scrooloose/syntastic.git
git clone https://github.com/vim-airline/vim-airline.git
git clone https://github.com/vim-airline/vim-airline-themes.git
git clone https://github.com/croaky/vim-colors-github.git
git clone https://github.com/pbrisbin/vim-mkdir.git
git clone https://github.com/tpope/vim-surround.git