## NVM / Bash / OSX installation on Mac

The purpose for this post is simple, get RVM installed so that i can get back to it whenever i format my computer and believe me, it happens very often.

This is actually quite simple - First, make sure you've got HomeBrew installed, then run:

brew update
brew install nvm


and include the following:

# Node Version Manager
export NVM_DIR="$HOME/.nvm" source "/usr/local/opt/nvm/nvm.sh"  so that my nvm is available as needed and since i don't have a python requirement at work, i'll simply use the latest: nvm install v6.11.2  There's one thing that bother's me and that is that now, when i open a bash session it takes quite a bit si instead of loading nvm, i'm just going to use the path to my current installation by replacing the bash code i said you should add with this: export PATH="$PATH:$HOME/.nvm/versions/node/v6.11.2/bin"  THE END! ## PyEnv / Bash / OSX installation on Mac The purpose for this post is simple, get PyEnv installed so that i can get back to it whenever i format my computer and believe me, it happens very often. This is actually quite simple - First, make sure you've got HomeBrew installed, then run: brew update brew install pyenv  Since i don't have a python requirement at work, i'll simply use the latest: pyenv install 3.6.2  Now all you need to do is add eval "$(pyenv init -)" to your $HOME/.bash_profile. Once this has been set, you can simply select the python version you want: pyenv global 3.6.2  This will cause a file under ~/.python-version to contain the default python version THE END! ## RVM / Bash / OSX installation on Mac The purpose for this post is simple, get RVM installed so that i can get back to it whenever i format my computer and believe me, it happens very often. This is actually quite simple, I went to the Github repository (rvm/rvm) and executed the expected command: \curl -sSL https://get.rvm.io | bash -s stable  Bare in mind that this will create a $HOME/.profile which contains the following:

# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*


Now, since i'm not going to use RVM very often (at least at the moment), i'm going to install the latest and the one i need for work:

rvm install ruby
rvm install ruby-2.3.1


Now, I'm going to make 2.3.1 the default one.

rvm --default use 2.3.1


Resources:

THE END!

Jesus Rodriguez

Vancouver, BC