Last active
September 29, 2015 07:48
-
-
Save okitan/1569113 to your computer and use it in GitHub Desktop.
install dotfiles
This file contains 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 ~ | |
[[ -e dotfiles ]] || git clone git@github.com:okitan/dotfiles.git | |
# override dotfiles | |
targets=".emacs.d .gemrc .gitconfig .gitignore .rspec .rvmrc .tmux.conf .vimrc" | |
for target in $targets; do | |
[[ -e $target ]] && mv $target $target.old | |
ln -s ~/dotfiles/$target ~ | |
done | |
# need to create directory | |
mkdir -p ~/.bundle | |
ln -s ~/dotfiles/.bundle/config ~/.bundle | |
sed -i "" -e "s/^plugins=.*/plugins=\(brew cpanm gem git git-flow github osx perl rake ruby rvm\)/" .zshrc | |
cat <<EOF >> .zshrc | |
# added by https://raw.github.com/gist/1569113/dotfiles.sh | |
[[ -e ~/dotfiles/.zshrc ]] && source ~/dotfiles/.zshrc | |
export LANG=ja_JP.UTF-8 | |
EOF | |
cd - |
This file contains 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
curl https://gist.github.com/okitan/1569113/raw/dotfiles.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment