summaryrefslogtreecommitdiff
path: root/themes/fino.zsh-theme
diff options
context:
space:
mode:
authorNick Diego Yamane <nick@diegoyam.com>2018-08-29 15:01:10 -0400
committerRobby Russell <robby@planetargon.com>2018-08-29 12:01:10 -0700
commit143cc8f90158f39d8630f26e9b0865502a467c61 (patch)
tree1522e77fc0b1ed66a96e207e9a0aadc1bf193637 /themes/fino.zsh-theme
parent285b540167a665bbe45da780f3fb35da2d4aea60 (diff)
downloadzsh-143cc8f90158f39d8630f26e9b0865502a467c61.tar.gz
zsh-143cc8f90158f39d8630f26e9b0865502a467c61.tar.bz2
zsh-143cc8f90158f39d8630f26e9b0865502a467c61.zip
Fix rvm-prompt usage in fino* themes (#6477)
* theme/fino: Check rvm-prompt is installed before to try to use it Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com> * theme/fino-time: Check rvm-prompt is installed before to try to use it Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
Diffstat (limited to 'themes/fino.zsh-theme')
-rw-r--r--themes/fino.zsh-theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
index 6eec097f5..71ed6bbbc 100644
--- a/themes/fino.zsh-theme
+++ b/themes/fino.zsh-theme
@@ -22,10 +22,10 @@ function box_name {
local ruby_env=''
if which rvm-prompt &> /dev/null; then
- ruby_env=' ‹$(rvm-prompt i v g)›%{$reset_color%}'
+ ruby_env='using%{$FG[243]%} ‹$(rvm-prompt i v g)›%{$reset_color%}'
else
if which rbenv &> /dev/null; then
- ruby_env=' ‹$(rbenv version-name)›%{$reset_color%}'
+ ruby_env='using%{$FG[243]%} ‹$(rbenv version-name)›%{$reset_color%}'
fi
fi
@@ -34,7 +34,7 @@ local git_info='$(git_prompt_info)'
local prompt_char='$(prompt_char)'
-PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}using%{$FG[243]%}${ruby_env}
+PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}${ruby_env}
╰─${prompt_char}%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"