Skip to content

Instantly share code, notes, and snippets.

@MasahiroSakoda
Created May 2, 2013 06:30
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 MasahiroSakoda/5500492 to your computer and use it in GitHub Desktop.
Save MasahiroSakoda/5500492 to your computer and use it in GitHub Desktop.
rbenv install script environment: Mac OSX, using zsh
#/bin/bash
# move to home directory
cd ${HOME};
# clone rbenv into home directory
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
# set env path for zsh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
echo 'eval "$(rbenv init -)"' >> ~/.zshenv
# reactivate zsh
exec $SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment