Skip to content

Instantly share code, notes, and snippets.

@timestep
Last active August 29, 2015 14:03
Show Gist options
  • Save timestep/1844ba04c81329ace100 to your computer and use it in GitHub Desktop.
Save timestep/1844ba04c81329ace100 to your computer and use it in GitHub Desktop.
rbenv install CMDs
cd
RBENV = "~/.rbenv"
echo 'No RBENV. Installing.....'
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
if [ $ZSH_VERSION ]
then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
. ~/.zshrc
elif [ $BASH_VERSION ]
then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
. ~/.bashrc
else
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
. ~/.bash_profile
fi
rbenv install 2.0.0-p247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment