Merge pull request #1101 from Bash-it/revert-1095-patch-1

Revert "Update base.theme.bash with RUBY interpreter version check"
pull/1103/head
Nils Winkler 2017-11-28 08:25:53 +01:00 committed by GitHub
commit d49b7c649e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -383,13 +383,8 @@ 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)$(rb_interp_prompt)"
echo -e "$(rbfu_version_prompt)$(rbenv_version_prompt)$(rvm_version_prompt)$(chruby_version_prompt)"
}
function virtualenv_prompt {