juanghurtado.zsh-theme 1.3 KB

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