fix: quote % characters in ruby prompt info functions

This commit is contained in:
Marc Cornellà 2021-12-13 17:43:32 +01:00
commit 9a3d853481
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
4 changed files with 6 additions and 5 deletions

View file

@ -45,4 +45,5 @@ function rbfu-rubies() {
# Public: Create rvm_prompt_info command for themes compatibility, unless
# it has already been defined.
[ ! -x rvm_prompt_info ] && function rvm_prompt_info() { echo "${RBFU_RUBY_VERSION:=system}" }
(( ${+functions[rvm_prompt_info]} )) || \
function rvm_prompt_info() { echo "${${RBFU_RUBY_VERSION:=system}:gs/%/%%}" }