Add a prompt for rbenv ruby version

pull/22/head
NateMcCurdy 2015-03-26 15:39:27 -07:00
parent a324bc75f7
commit 443c1dbc8f
1 changed files with 7 additions and 0 deletions

View File

@ -227,6 +227,13 @@ prompt_rvm() {
fi
}
# rbenv information
prompt_rbenv() {
if [[ -n "$RBENV_VERSION" ]]; then
$1_prompt_segment red black "$RBENV_VERSION"
fi
}
# Main prompt
build_left_prompt() {
if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then