mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge pull request #4 from natemccurdy/add_rbenv_prompt
Add a prompt for rbenv ruby version
This commit is contained in:
commit
482b4b2041
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,13 @@ prompt_rvm() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# rbenv information
|
||||||
|
prompt_rbenv() {
|
||||||
|
if [[ -n "$RBENV_VERSION" ]]; then
|
||||||
|
$1_prompt_segment red black "$RBENV_VERSION"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Main prompt
|
# Main prompt
|
||||||
build_left_prompt() {
|
build_left_prompt() {
|
||||||
if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then
|
if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then
|
||||||
|
|
Loading…
Reference in a new issue