Closed dritter closed 5 years ago
I don't think this will break anything, so I merged this one. @HaoZeke thanks and have a look at master. ;)
I don't believe this fixes the RVM prompt. In my installation, this only shows the ruby version, but not the gemset. In my local repo, I changed this:
prompt_rvm() {
if [ $commands[rvm-prompt] ]; then
local version_and_gemset=${$(rvm-prompt v p)/ruby-}
if [[ -n "$version_and_gemset" ]]; then
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
fi
fi
}
to this...
prompt_rvm() {
if [ $commands[rvm-prompt] ]; then
local version_and_gemset=${$(rvm-prompt)/ruby-}
if [[ -n "$version_and_gemset" ]]; then
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
fi
fi
}
And it now displays as I want it to:
This is a cleaned up Version of #832 .