mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 05:51:57 +00:00
rvm: Use @natemccurdy review suggestions
This commit is contained in:
parent
a41f2e81ae
commit
58f70e57e6
1 changed files with 5 additions and 3 deletions
|
@ -1365,10 +1365,12 @@ prompt_rspec_stats() {
|
|||
################################################################
|
||||
# Segment to display Ruby Version Manager information
|
||||
prompt_rvm() {
|
||||
local version_and_gemset=${$(rvm-prompt v p)/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" "240" "$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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue