mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 13:41:56 +00:00
Revert "Huge performance improvement if you use rvm
segment."
This reverts commit 643555a30c
.
This does allow rvm to be detected even without using the depreciated
gemset settings.
This commit is contained in:
parent
6ccdfdf37e
commit
1da5fd2ed7
1 changed files with 2 additions and 2 deletions
|
@ -1365,10 +1365,10 @@ prompt_rspec_stats() {
|
||||||
################################################################
|
################################################################
|
||||||
# Segment to display Ruby Version Manager information
|
# Segment to display Ruby Version Manager information
|
||||||
prompt_rvm() {
|
prompt_rvm() {
|
||||||
local version_and_gemset=${rvm_env_string/ruby-}
|
local version_and_gemset=${$(rvm-prompt)/ruby-}
|
||||||
|
|
||||||
if [[ -n "$version_and_gemset" ]]; then
|
if [[ -n "$version_and_gemset" ]]; then
|
||||||
"$1_prompt_segment" "$0" "$2" "grey35" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
|
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue