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
|
|
|
|
ln -s $(pwd)/bin ~/bin
|
2017-04-28 17:00:40 +00:00
|
|
|
|
2017-02-10 20:18:56 +00:00
|
|
|
if [[ $OSTYPE == darwin* ]]; then
|
|
|
|
~/bin/setup-usr-local.sh
|
|
|
|
fi
|
2017-02-03 20:10:10 +00:00
|
|
|
|
2017-04-27 03:00:30 +00:00
|
|
|
|
|
|
|
rm -rf ~/.zprezto
|
|
|
|
git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto
|
2017-02-10 20:18:56 +00:00
|
|
|
|
|
|
|
# delete existing dotfiles
|
2017-04-27 03:00:30 +00:00
|
|
|
rm -rf ~/.bash_aliases
|
2017-02-10 20:18:56 +00:00
|
|
|
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
|
2017-05-11 21:16:45 +00:00
|
|
|
rm -rf ~/.emacs
|
2017-02-10 20:18:56 +00:00
|
|
|
rm -rf ~/.vimrc
|
|
|
|
rm -rf ~/.zshrc
|
|
|
|
rm -rf ~/.pythonstartup.py
|
2017-04-27 03:00:30 +00:00
|
|
|
rm -rf ~/.zlogin
|
|
|
|
rm -rf ~/.zlogout
|
|
|
|
rm -rf ~/.zpreztorc
|
|
|
|
rm -rf ~/.zprofile
|
|
|
|
rm -rf ~/.zshenv
|
|
|
|
rm -rf ~/.zshrc
|
|
|
|
|
2017-02-10 20:18:56 +00:00
|
|
|
# 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
|
2017-05-11 21:16:45 +00:00
|
|
|
ln -s $(pwd)/emacs ~/.emacs
|
2015-12-23 04:20:23 +00:00
|
|
|
ln -s $(pwd)/vim ~/.vim
|
|
|
|
ln -s $(pwd)/vimrc ~/.vimrc
|
|
|
|
ln -s $(pwd)/zshrc ~/.zshrc
|
2017-01-10 15:40:39 +00:00
|
|
|
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
|
2017-04-27 03:00:30 +00:00
|
|
|
ln -s $(pwd)/zprofile.local ~/.zprofile.local
|
2017-04-27 03:06:27 +00:00
|
|
|
ln -s $(pwd)/zpreztorc ~/.zpreztorc
|
|
|
|
|
2017-04-27 03:37:47 +00:00
|
|
|
ln -s $HOME/.zprezto/runcoms/zlogin ~/.zlogin
|
|
|
|
ln -s $HOME/.zprezto/runcoms/zlogout ~/.zlogout
|
|
|
|
ln -s $HOME/.zprezto/runcoms/zshenv ~/.zshenv
|
|
|
|
ln -s $HOME/.zprezto/runcoms/zshrc ~/.zshrc
|
|
|
|
ln -s $HOME/.zprezto/runcoms/zprofile ~/.zprofile
|
|
|
|
echo "source ~/.zprofile.local" >> ~/.zprofile
|
2017-02-10 20:18:56 +00:00
|
|
|
|
2017-02-03 20:10:10 +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
|
2017-05-08 18:12:54 +00:00
|
|
|
git clone git@github.com:JamshedVesuna/vim-markdown-preview.git
|
2017-04-27 03:00:30 +00:00
|
|
|
git clone git@github.com:Shougo/denite.nvim.git
|
|
|
|
git clone git@github.com:croaky/vim-colors-github.git
|
|
|
|
git clone git@github.com:danro/rename.vim.git
|
|
|
|
git clone git@github.com:fatih/vim-go.git
|
|
|
|
git clone git@github.com:kien/ctrlp.vim.git
|
|
|
|
git clone git@github.com:mileszs/ack.vim.git
|
|
|
|
git clone git@github.com:pbrisbin/vim-mkdir.git
|
|
|
|
git clone git@github.com:scrooloose/syntastic.git
|
2017-05-08 18:12:54 +00:00
|
|
|
git clone git@github.com:spolu/dwm.vim.git
|
|
|
|
git clone git@github.com:tpope/vim-surround.git
|
2017-04-27 03:00:30 +00:00
|
|
|
git clone git@github.com:vim-airline/vim-airline-themes.git
|
|
|
|
git clone git@github.com:vim-airline/vim-airline.git
|