Skip to content

Instantly share code, notes, and snippets.

@mykolaharmash
Last active January 28, 2017 13:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykolaharmash/654b5bed5c777122384f15d50c841c4f to your computer and use it in GitHub Desktop.
Save mykolaharmash/654b5bed5c777122384f15d50c841c4f to your computer and use it in GitHub Desktop.
bootstrap script for nik-garmash/.dotfiles
cd $HOME
git clone git@github.com:nik-garmash/.dotfiles.git
cd $HOME/.dotfiles
git submodule init && git submodule update
cd $HOME
if [ -f .bashrc ]
then
mv .bashrc .bashrc.b
fi
if [ -f .bash_profile ]
then
mv .bash_profile .bash_profile.b
fi
if [ -f .vimrc ]
then
mv .vimrc .vimrc.b
fi
# installing NeoBundle for VIM
# https://github.com/Shougo/neobundle.vim
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > neo_bundle_install.sh
sh ./neo_bundle_install.sh
rm neo_bundle_install.sh
# bash_it
# https://github.com/Bash-it/bash-it
ln -s $HOME/.dotfiles/.bash_it $HOME/.bash_it
$HOME/.bash_it/install.sh
rm $HOME/.bashrc 2>/dev/null
rm $HOME/.bash_profile 2>/dev/null
ln -s $HOME/.dotfiles/.bashrc $HOME/.bashrc
ln -s $HOME/.dotfiles/.bashrc $HOME/.bash_profile
ln -s $HOME/.dotfiles/.vimrc $HOME/.vimrc
ln -s $HOME/.dotfiles/.tmux.conf $HOME/.tmux.conf
ln -s $HOME/.dotfiles/.tmux $HOME/.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment