1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-19 14:01:57 +00:00

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

Fix RVM
This commit is contained in:
Dominik Ritter 2019-02-09 17:46:40 +01:00 committed by GitHub
commit dcd7718c62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1365,10 +1365,12 @@ 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-} if [ $commands[rvm-prompt] ]; then
local version_and_gemset=${$(rvm-prompt v p)/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 fi
} }