Permalink
Browse files

Merge pull request #1149 from dritter/HaoZeke-fix-RVM

Fix RVM
  • Loading branch information...
dritter committed Feb 9, 2019
2 parents f7d0293 + 58f70e5 commit dcd7718c62a935b545bd60148e9ea4d7bdf9e70a
Showing with 5 additions and 3 deletions.
  1. +5 −3 powerlevel9k.zsh-theme
@@ -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
}

0 comments on commit dcd7718

Please sign in to comment.