Skip to content

Commit

Permalink
Merge pull request Powerlevel9k#1149 from dritter/HaoZeke-fix-RVM
Browse files Browse the repository at this point in the history
Fix RVM
  • Loading branch information
dritter authored Feb 9, 2019
2 parents f7d0293 + 58f70e5 commit dcd7718
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -1365,10 +1365,12 @@ prompt_rspec_stats() {
################################################################
# Segment to display Ruby Version Manager information
prompt_rvm() {
local version_and_gemset=${rvm_env_string/ruby-}
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" "grey35" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
if [[ -n "$version_and_gemset" ]]; then
"$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version_and_gemset" 'RUBY_ICON'
fi
fi
}

Expand Down

0 comments on commit dcd7718

Please sign in to comment.