Skip to content

Instantly share code, notes, and snippets.

@ddaws
Last active August 29, 2015 13:59
Show Gist options
  • Save ddaws/10944544 to your computer and use it in GitHub Desktop.
Save ddaws/10944544 to your computer and use it in GitHub Desktop.
Rbenv install script I currently use with [Vagrant](http://www.vagrantup.com/) in [Development Enviroment](https://github.com/dreid93/devenv).
#!/bin/bash
RBENV_DIR=$HOME/.rbenv
if [ ! -d "$RBENV_DIR" ]; then
git clone https://github.com/sstephenson/rbenv.git $RBENV_DIR
echo 'export PATH="$RBENV_DIR/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone https://github.com/sstephenson/ruby-build.git $RBENV_DIR/plugins/ruby-build
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment