kphoen.zsh-theme 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # kphoen.zsh-theme
  2. if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
  3. PROMPT='[%{$fg[red]%}%n%{$reset_color%}@%{$fg[magenta]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%}$(git_prompt_info)]
  4. %# '
  5. ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[green]%}"
  6. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  7. ZSH_THEME_GIT_PROMPT_DIRTY=""
  8. ZSH_THEME_GIT_PROMPT_CLEAN=""
  9. # display exitcode on the right when >0
  10. return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  11. RPROMPT='${return_code}$(git_prompt_status)%{$reset_color%}'
  12. ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
  13. ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
  14. ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
  15. ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
  16. ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
  17. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
  18. else
  19. PROMPT='[%n@%m:%~$(git_prompt_info)]
  20. %# '
  21. ZSH_THEME_GIT_PROMPT_PREFIX=" on"
  22. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  23. ZSH_THEME_GIT_PROMPT_DIRTY=""
  24. ZSH_THEME_GIT_PROMPT_CLEAN=""
  25. # display exitcode on the right when >0
  26. return_code="%(?..%? ↵)"
  27. RPROMPT='${return_code}$(git_prompt_status)'
  28. ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
  29. ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
  30. ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
  31. ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
  32. ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
  33. ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
  34. fi