Skip to content

Instantly share code, notes, and snippets.

@okitan
Last active September 29, 2015 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okitan/1569113 to your computer and use it in GitHub Desktop.
Save okitan/1569113 to your computer and use it in GitHub Desktop.
install dotfiles
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 -
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