my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

3 years ago
  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%}"