refactor(themes): use ruby_prompt_info everywhere

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

View file

@ -10,7 +10,7 @@ function josh_prompt {
prompt=" "
branch=$(git_current_branch)
ruby_version=$(rvm_prompt_info || rbenv_prompt_info)
ruby_version=$(ruby_prompt_info)
path_size=${#PWD}
branch_size=${#branch}
ruby_size=${#ruby_version}
@ -31,7 +31,7 @@ function josh_prompt {
prompt=" $prompt"
done
prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(rvm_prompt_info || rbenv_prompt_info)%{$reset_color%} $(git_current_branch)"
prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(ruby_prompt_info)%{$reset_color%} $(git_current_branch)"
echo $prompt
}