Skip to content

Instantly share code, notes, and snippets.

@chrismanderson
Created March 26, 2013 13:22
Show Gist options
  • Save chrismanderson/5245313 to your computer and use it in GitHub Desktop.
Save chrismanderson/5245313 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
export PS1="\n$RED\$(rbenv_prompt_info) $GREEN\w$EWHITE\$(vcprompt)$OFF \n→ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment