Merge pull request #1095 from lfelipe1501/patch-1

Update base.theme.bash with RUBY interpreter version check
pull/1097/head
Nils Winkler 2017-11-23 09:10:54 +01:00 committed by GitHub
commit 51b4a9b17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -383,8 +383,13 @@ function chruby_version_prompt {
fi
}
function rb_interp_prompt {
rb_version=$(ruby --version | awk '{print $2;}') || return
echo -e "${RUBY_THEME_PROMPT_PREFIX}${rb_version}${RUBY_THEME_PROMPT_SUFFIX}"
}
function ruby_version_prompt {
echo -e "$(rbfu_version_prompt)$(rbenv_version_prompt)$(rvm_version_prompt)$(chruby_version_prompt)"
echo -e "$(rbfu_version_prompt)$(rbenv_version_prompt)$(rvm_version_prompt)$(chruby_version_prompt)$(rb_interp_prompt)"
}
function virtualenv_prompt {