kphoen.zsh-theme 1.7 KB

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