diff options
author | NateMcCurdy <nate.mccurdy@puppetlabs.com> | 2015-03-27 01:39:27 +0300 |
---|---|---|
committer | NateMcCurdy <nate.mccurdy@puppetlabs.com> | 2015-03-27 01:39:27 +0300 |
commit | 443c1dbc8fc80fdec3a3a8ca00a8291a5b9e2b17 (patch) | |
tree | ffe7e3cddb225091541d809b3a47183cbc73c922 /powerlevel9k.zsh-theme | |
parent | a324bc75f737bd1ea4e1896295ff0b9c9b2f64f8 (diff) |
Add a prompt for rbenv ruby version
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 7 |
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 |