aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-03-27 01:43:12 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-03-27 01:43:12 +0300
commit482b4b2041783764e087a4a0086dd0379f8d4383 (patch)
treeffe7e3cddb225091541d809b3a47183cbc73c922
parenta324bc75f737bd1ea4e1896295ff0b9c9b2f64f8 (diff)
parent443c1dbc8fc80fdec3a3a8ca00a8291a5b9e2b17 (diff)
Merge pull request #4 from natemccurdy/add_rbenv_prompt
Add a prompt for rbenv ruby version
-rw-r--r--powerlevel9k.zsh-theme7
1 files changed, 7 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 954454a2..11c1249b 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -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