|
|
@ -990,7 +990,7 @@ prompt_rvm() {
|
|
|
|
local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
|
|
|
|
local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
|
|
|
|
[ "$gemset" != "" ] && gemset="@$gemset"
|
|
|
|
[ "$gemset" != "" ] && gemset="@$gemset"
|
|
|
|
|
|
|
|
|
|
|
|
local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
|
|
|
|
local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $NF}')
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "$version$gemset" ]]; then
|
|
|
|
if [[ -n "$version$gemset" ]]; then
|
|
|
|
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version$gemset" 'RUBY_ICON'
|
|
|
|
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version$gemset" 'RUBY_ICON'
|
|
|
|