Skip to content

Instantly share code, notes, and snippets.

@0xjjpa
Created August 9, 2012 13:32
Show Gist options
  • Save 0xjjpa/3304205 to your computer and use it in GitHub Desktop.
Save 0xjjpa/3304205 to your computer and use it in GitHub Desktop.
.bashrc and .profile for NVM and RVM to work with Sublime Text 2 (Ubuntu 12.04)
###################### .bashrc ########################
# Bash For NVM
. ~/nvm/nvm.sh
# Other
# [[ -s "$HOME/.nvm" ]] && . "$HOME/.nvm/nvm.sh" # This loads NVM into a shell se$
# Bash For RVM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
###################### .bashrc #########################
###################### .profile ########################
# Vagrant
export PATH=$PATH:/opt/vagrant/bin
# RVM and NVM for scripting
export PATH=$PATH:$HOME/.rvm/bin
export PATH=$PATH:$HOME/nvm/v0.8.5/bin
###################### .profile ########################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment