suvash.zsh-theme 661 B

123456789101112131415161718192021
  1. function prompt_char {
  2. git branch >/dev/null 2>/dev/null && echo '±' && return
  3. hg root >/dev/null 2>/dev/null && echo 'Hg' && return
  4. echo '○'
  5. }
  6. function virtualenv_info {
  7. [[ -n "$VIRTUAL_ENV" ]] && echo '('${VIRTUAL_ENV:t}') '
  8. }
  9. PROMPT='%F{magenta}%n%f at %F{yellow}%m%f in %B%F{green}%~%f%b$(git_prompt_info)$(ruby_prompt_info)
  10. $(virtualenv_info) $(prompt_char) '
  11. ZSH_THEME_GIT_PROMPT_PREFIX=' on %F{magenta}'
  12. ZSH_THEME_GIT_PROMPT_SUFFIX='%f'
  13. ZSH_THEME_GIT_PROMPT_DIRTY='%F{green}!'
  14. ZSH_THEME_GIT_PROMPT_UNTRACKED='%F{green}?'
  15. ZSH_THEME_GIT_PROMPT_CLEAN=''
  16. ZSH_THEME_RUBY_PROMPT_PREFIX=' using %F{red}'
  17. ZSH_THEME_RUBY_PROMPT_SUFFIX='%f'