1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Merge pull request #4 from natemccurdy/add_rbenv_prompt

Add a prompt for rbenv ruby version
This commit is contained in:
Ben Hilburn 2015-03-26 15:43:12 -07:00
commit 482b4b2041

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