Skip to content

Instantly share code, notes, and snippets.

@colindensem
Created October 16, 2010 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colindensem/629863 to your computer and use it in GitHub Desktop.
Save colindensem/629863 to your computer and use it in GitHub Desktop.
rvm prompt info
# get the name of the branch we are on
function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
echo "$ruby_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment