summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Dimitrou <dimitriou.pierrea@gmail.com>2016-05-14 22:05:35 +0200
committerPierre Dimitrou <dimitriou.pierrea@gmail.com>2016-05-14 22:05:35 +0200
commitb1ab13d9e63b3c7cc1f30d2712a44c50e5acccf8 (patch)
treea18a794977d3779e8a2436ac98d55d4a88c1486b
parent621eb21139512cb0e00fbc5a9b9d215308eba720 (diff)
downloadzsh-b1ab13d9e63b3c7cc1f30d2712a44c50e5acccf8.tar.gz
zsh-b1ab13d9e63b3c7cc1f30d2712a44c50e5acccf8.tar.bz2
zsh-b1ab13d9e63b3c7cc1f30d2712a44c50e5acccf8.zip
Add rbenv support for ruby version display
-rw-r--r--themes/avit.zsh-theme2
1 files changed, 2 insertions, 0 deletions
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
index 87d5be30a..4f0dcbcc6 100644
--- a/themes/avit.zsh-theme
+++ b/themes/avit.zsh-theme
@@ -41,6 +41,8 @@ function _vi_status() {
function _ruby_version() {
if {echo $fpath | grep -q "plugins/rvm"}; then
echo "%{$fg[grey]%}$(rvm_prompt_info)%{$reset_color%}"
+ elif {echo $fpath | grep -q "plugins/rbenv"}; then
+ echo "%{$fg[grey]%}$(rbenv_prompt_info)%{$reset_color%}"
fi
}