Skip to content

Instantly share code, notes, and snippets.

@chrismanderson
Created March 26, 2013 01:30
Show Gist options
  • Save chrismanderson/5242400 to your computer and use it in GitHub Desktop.
Save chrismanderson/5242400 to your computer and use it in GitHub Desktop.
function rbenv_prompt_info() {
local ruby_version
ruby_version=$(rbenv version 2> /dev/null) || return
echo "$ruby_version" | sed 's/[ \t].*$//'
}
alias rvm-prompt=rbenv_prompt_info
alias rvm_prompt_info=rbenv_prompt_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment