mira.zsh-theme 811 B

1234567891011121314151617181920212223
  1. # Based on bira zsh theme with nvm, rvm and jenv support
  2. local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  3. local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
  4. local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
  5. local nvm_node='%{$fg[green]%}‹node-$(nvm_prompt_info)›%{$reset_color%}'
  6. local jenv_java='%{$fg[blue]%}‹$(jenv_prompt_info)›%{$reset_color%}'
  7. local git_branch='$(git_prompt_info)'
  8. local rvm_ruby='$(ruby_prompt_info)'
  9. PROMPT="╭─${user_host} ${current_dir} ${nvm_node} ${rvm_ruby} ${jenv_java} ${git_branch}
  10. ╰─%B$%b "
  11. RPS1="${return_code}"
  12. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
  13. ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"
  14. ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹"
  15. ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"