diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-13 17:12:31 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-13 17:14:25 +0100 |
commit | e3bb6e685dc0325f472a4cfadb9847add12ec699 (patch) | |
tree | a7b31f17a590f6c550f3e002cf396ba5e10e15e6 /themes/josh.zsh-theme | |
parent | aa99472c8ac5bdd111ea306e800bb152fb8580ac (diff) | |
download | zsh-e3bb6e685dc0325f472a4cfadb9847add12ec699.tar.gz zsh-e3bb6e685dc0325f472a4cfadb9847add12ec699.tar.bz2 zsh-e3bb6e685dc0325f472a4cfadb9847add12ec699.zip |
refactor(themes): use `ruby_prompt_info` everywhere
Diffstat (limited to 'themes/josh.zsh-theme')
-rw-r--r-- | themes/josh.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/josh.zsh-theme b/themes/josh.zsh-theme index c8f0f4dd7..ea051c58e 100644 --- a/themes/josh.zsh-theme +++ b/themes/josh.zsh-theme @@ -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 } |