diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-05-08 08:50:31 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-05-08 08:50:31 +0200 |
commit | 76c7bd57c332b3d9231dc2c6167f3c5d3e56e110 (patch) | |
tree | acdc36193f390e01f4144ff8feefd126b5aecd8b /themes/fino.zsh-theme | |
parent | ea3e666e04bfae31b37ef42dfe54801484341e46 (diff) | |
parent | 299cd4777a8b9da1934a1ed0c80767eea6691a70 (diff) | |
download | zsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.tar.gz zsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.tar.bz2 zsh-76c7bd57c332b3d9231dc2c6167f3c5d3e56e110.zip |
Merge branch 'apjanke/themes-rvm-prompt-function' (#4588)
Fixes #4272
Fixes #4182
Closes #4197
Closes #4588
Diffstat (limited to 'themes/fino.zsh-theme')
-rw-r--r-- | themes/fino.zsh-theme | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme index 28d6cc2ec..1d8bb30e1 100644 --- a/themes/fino.zsh-theme +++ b/themes/fino.zsh-theme @@ -20,15 +20,7 @@ function box_name { [ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST} } -local ruby_env='' -if which rvm-prompt &> /dev/null; then - ruby_env='using%{$FG[243]%} ‹$(rvm-prompt i v g)›%{$reset_color%}' -else - if which rbenv &> /dev/null; then - ruby_env='using%{$FG[243]%} ‹$(rbenv version-name)›%{$reset_color%}' - fi -fi - +local ruby_env='using%{$FG[243]%} $(ruby_prompt_info)' local git_info='$(git_prompt_info)' local prompt_char='$(prompt_char)' @@ -40,3 +32,5 @@ ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘" ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔" +ZSH_THEME_RUBY_PROMPT_PREFIX="‹" +ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}" |