summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2016-05-18 19:16:13 -0700
committerRobby Russell <robby@planetargon.com>2016-05-18 19:16:13 -0700
commitde427f32b3cfce3a865ee69aaf1bfe41e9952f51 (patch)
tree89f38197115812dc6ac322b872801012f8b635a0
parent11b48e1e9fc2e2fd9aaa5bd6b645523f6f03bc6b (diff)
parentb1ab13d9e63b3c7cc1f30d2712a44c50e5acccf8 (diff)
downloadzsh-de427f32b3cfce3a865ee69aaf1bfe41e9952f51.tar.gz
zsh-de427f32b3cfce3a865ee69aaf1bfe41e9952f51.tar.bz2
zsh-de427f32b3cfce3a865ee69aaf1bfe41e9952f51.zip
Merge pull request #5094 from pzgull/add-rbenv-to-avit-theme
Add rbenv support for ruby version display in the Avit theme
-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
}