juanghurtado.zsh-theme 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # ------------------------------------------------------------------------
  2. # Juan G. Hurtado oh-my-zsh theme
  3. # (Needs Git plugin for current_branch method)
  4. # ------------------------------------------------------------------------
  5. # Color shortcuts
  6. RED=$fg[red]
  7. YELLOW=$fg[yellow]
  8. GREEN=$fg[green]
  9. WHITE=$fg[white]
  10. BLUE=$fg[blue]
  11. RED_BOLD=$fg_bold[red]
  12. YELLOW_BOLD=$fg_bold[yellow]
  13. GREEN_BOLD=$fg_bold[green]
  14. WHITE_BOLD=$fg_bold[white]
  15. BLUE_BOLD=$fg_bold[blue]
  16. RESET_COLOR=$reset_color
  17. # Format for git_prompt_info()
  18. ZSH_THEME_GIT_PROMPT_PREFIX=""
  19. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  20. # Format for parse_git_dirty()
  21. ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RED%}(*)"
  22. ZSH_THEME_GIT_PROMPT_CLEAN=""
  23. # Format for git_prompt_status()
  24. ZSH_THEME_GIT_PROMPT_UNMERGED=" %{$RED%}unmerged"
  25. ZSH_THEME_GIT_PROMPT_DELETED=" %{$RED%}deleted"
  26. ZSH_THEME_GIT_PROMPT_RENAMED=" %{$YELLOW%}renamed"
  27. ZSH_THEME_GIT_PROMPT_MODIFIED=" %{$YELLOW%}modified"
  28. ZSH_THEME_GIT_PROMPT_ADDED=" %{$GREEN%}added"
  29. ZSH_THEME_GIT_PROMPT_UNTRACKED=" %{$WHITE%}untracked"
  30. # Format for git_prompt_ahead()
  31. ZSH_THEME_GIT_PROMPT_AHEAD=" %{$RED%}(!)"
  32. # Format for git_prompt_long_sha() and git_prompt_short_sha()
  33. ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$WHITE%}[%{$YELLOW%}"
  34. ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]"
  35. # Prompt format
  36. PROMPT='
  37. %{$GREEN_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
  38. %{$BLUE%}>%{$RESET_COLOR%} '
  39. RPROMPT='%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)$(git_prompt_status)%{$RESET_COLOR%}'