diff --git a/zsh/prezto-themes/prompt_skwp_setup b/zsh/prezto-themes/prompt_skwp_setup index 27b48963..17b4d7e8 100644 --- a/zsh/prezto-themes/prompt_skwp_setup +++ b/zsh/prezto-themes/prompt_skwp_setup @@ -1,6 +1,6 @@ # # A theme based on steeef theme -# * RVM info shown on the right +# * RVM/Rbenv info shown on the right # * Git branch info on the left # * Single line prompt # @@ -18,6 +18,11 @@ function rvm_info_for_prompt { if [ -n "$ruby_version" ]; then echo "[$ruby_version]" fi + elif [[ -d ~/.rbenv/ ]]; then + ruby_version=(${(s: :)$(rbenv version)}) + if [ -n "$ruby_version" ]; then + echo "[${ruby_version[1]}]" + fi fi }