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.

41 lines
1.3 KiB

3 years ago
  1. # Color shortcuts
  2. RED=$fg[red]
  3. YELLOW=$fg[yellow]
  4. GREEN=$fg[green]
  5. WHITE=$fg[white]
  6. BLUE=$fg[blue]
  7. RED_BOLD=$fg_bold[red]
  8. YELLOW_BOLD=$fg_bold[yellow]
  9. GREEN_BOLD=$fg_bold[green]
  10. WHITE_BOLD=$fg_bold[white]
  11. BLUE_BOLD=$fg_bold[blue]
  12. RESET_COLOR=$reset_color
  13. # Format for git_prompt_info()
  14. ZSH_THEME_GIT_PROMPT_PREFIX=""
  15. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  16. # Format for parse_git_dirty()
  17. ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RED%}(*)"
  18. ZSH_THEME_GIT_PROMPT_CLEAN=""
  19. # Format for git_prompt_status()
  20. ZSH_THEME_GIT_PROMPT_UNMERGED=" %{$RED%}unmerged"
  21. ZSH_THEME_GIT_PROMPT_DELETED=" %{$RED%}deleted"
  22. ZSH_THEME_GIT_PROMPT_RENAMED=" %{$YELLOW%}renamed"
  23. ZSH_THEME_GIT_PROMPT_MODIFIED=" %{$YELLOW%}modified"
  24. ZSH_THEME_GIT_PROMPT_ADDED=" %{$GREEN%}added"
  25. ZSH_THEME_GIT_PROMPT_UNTRACKED=" %{$WHITE%}untracked"
  26. # Format for git_prompt_ahead()
  27. ZSH_THEME_GIT_PROMPT_AHEAD=" %{$RED%}(!)"
  28. # Format for git_prompt_long_sha() and git_prompt_short_sha()
  29. ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$WHITE%}[%{$YELLOW%}"
  30. ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]"
  31. # Prompt format
  32. PROMPT='
  33. %{$GREEN_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
  34. %{$BLUE%}>%{$RESET_COLOR%} '
  35. RPROMPT='%{$GREEN_BOLD%}$(git_current_branch)$(git_prompt_short_sha)$(git_prompt_status)%{$RESET_COLOR%}'