peterhoeg/oh-my-zsh — comment on commit e42f1f9b74b0139cafc8724c2611cb1cfdc5d02d
File: plugins/rbenv/rbenv.plugin.zsh line 10
By dpree:

i think you could also just do

echo "$(rbenv version-name')"