diff options
author | HaoZeke <rohit.goswami@aol.com> | 2018-05-09 10:32:48 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-01-25 10:18:20 +0300 |
commit | 1da5fd2ed79df388bd1b601e5b27f6447e2075f7 (patch) | |
tree | 95bc9751893babd39ecb11c6696fc47a303e9d41 /powerlevel9k.zsh-theme | |
parent | 6ccdfdf37e47f67683c016426cac89c6a3ac9fb0 (diff) |
Revert "Huge performance improvement if you use `rvm` segment."
This reverts commit 643555a30c9576838157e04d45632080472e1b8b.
This does allow rvm to be detected even without using the depreciated
gemset settings.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 383a3b91..a0869f19 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1365,10 +1365,10 @@ prompt_rspec_stats() { ################################################################ # Segment to display Ruby Version Manager information prompt_rvm() { - local version_and_gemset=${rvm_env_string/ruby-} + local version_and_gemset=${$(rvm-prompt)/ruby-} 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 } |