Created
March 26, 2013 13:22
-
-
Save chrismanderson/5245313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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