sorin.zsh-theme 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # ------------------------------------------------------------------------------
  2. # FILE: sorin.zsh-theme
  3. # DESCRIPTION: oh-my-zsh theme file.
  4. # AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com)
  5. # VERSION: 1.0.2
  6. # SCREENSHOT: http://i.imgur.com/aipDQ.png
  7. # ------------------------------------------------------------------------------
  8. if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
  9. MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
  10. local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
  11. PROMPT='%{$fg[cyan]%}%c$(git_prompt_info) %(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}❯)%{$reset_color%} '
  12. ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}git%{$reset_color%}:%{$fg[red]%}"
  13. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  14. ZSH_THEME_GIT_PROMPT_DIRTY=""
  15. ZSH_THEME_GIT_PROMPT_CLEAN=""
  16. RPROMPT='${return_status}$(git_prompt_status)%{$reset_color%}'
  17. ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
  18. ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
  19. ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
  20. ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
  21. ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
  22. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
  23. else
  24. MODE_INDICATOR="❮❮❮"
  25. local return_status="%(?::⏎)"
  26. PROMPT='%c$(git_prompt_info) %(!.#.❯) '
  27. ZSH_THEME_GIT_PROMPT_PREFIX=" git:"
  28. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  29. ZSH_THEME_GIT_PROMPT_DIRTY=""
  30. ZSH_THEME_GIT_PROMPT_CLEAN=""
  31. RPROMPT='${return_status}$(git_prompt_status)'
  32. ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
  33. ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
  34. ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
  35. ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
  36. ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
  37. ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
  38. fi