sonicradish.zsh-theme 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env zsh
  2. #local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  3. setopt promptsubst
  4. autoload -U add-zsh-hook
  5. ROOT_ICON_COLOR=$FG[111]
  6. MACHINE_NAME_COLOR=$FG[208]
  7. PROMPT_SUCCESS_COLOR=$FG[103]
  8. PROMPT_FAILURE_COLOR=$FG[124]
  9. PROMPT_VCS_INFO_COLOR=$FG[242]
  10. PROMPT_PROMPT=$FG[208]
  11. GIT_DIRTY_COLOR=$FG[124]
  12. GIT_CLEAN_COLOR=$FG[148]
  13. GIT_PROMPT_INFO=$FG[148]
  14. # Hash
  15. ROOT_ICON="# "
  16. if [[ $EUID -ne 0 ]] ; then
  17. ROOT_ICON=""
  18. fi
  19. PROMPT='%{$ROOT_ICON_COLOR%}$ROOT_ICON%{$reset_color%}%{$MACHINE_NAME_COLOR%}%m➜ %{$reset_color%}%{$PROMPT_SUCCESS_COLOR%}%c%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ %{$reset_color%} '
  20. #RPS1="${return_code}"
  21. ZSH_THEME_GIT_PROMPT_PREFIX=": "
  22. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%} :"
  23. ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
  24. ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
  25. ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[103]%}✚%{$rset_color%}"
  26. ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[103]%}✹%{$reset_color%}"
  27. ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[103]%}✖%{$reset_color%}"
  28. ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[103]%}➜%{$reset_color%}"
  29. ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[103]%}═%{$reset_color%}"
  30. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[103]%}✭%{$reset_color%}"
  31. export LSCOLORS=dxfxcxdxbxexexabagacad