Last active
January 28, 2017 13:20
-
-
Save mykolaharmash/654b5bed5c777122384f15d50c841c4f to your computer and use it in GitHub Desktop.
bootstrap script for nik-garmash/.dotfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
git clone [email protected]: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