Last active
August 29, 2015 14:03
-
-
Save timestep/1844ba04c81329ace100 to your computer and use it in GitHub Desktop.
rbenv install CMDs
This file contains hidden or 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 | |
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