aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorNateMcCurdy <nate.mccurdy@puppetlabs.com>2015-03-27 01:39:27 +0300
committerNateMcCurdy <nate.mccurdy@puppetlabs.com>2015-03-27 01:39:27 +0300
commit443c1dbc8fc80fdec3a3a8ca00a8291a5b9e2b17 (patch)
treeffe7e3cddb225091541d809b3a47183cbc73c922 /powerlevel9k.zsh-theme
parenta324bc75f737bd1ea4e1896295ff0b9c9b2f64f8 (diff)
Add a prompt for rbenv ruby version
Diffstat (limited to 'powerlevel9k.zsh-theme')
-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