Plague_Doctor.bgptheme 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Plague Doctor's bash-git-prompt theme.
  2. #
  3. # Note 1: The theme is designed to work only in GIT Repos.
  4. # If one needs a coresponding prompt for non GIT locations, here is the code:
  5. #
  6. # if [ -f <path-to-prompt-colors.sh> ]; then
  7. # source <path-to-prompt-colors.sh>
  8. # MYPROMPT="${White}\A${ResetColor} ${BoldGreen}\\u${White}@${BoldYellow}\\h ${Cyan}\w${ResetColor}${BoldWhite} $ ${ResetColor}"
  9. # else
  10. # MYPROMPT="\[\033[37m\]\A \[\033[1m\]\[\033[32m\]\u\[\033[0m\]\[\033[37m\]@\[\033[1m\]\[\033[33m\]\h:\[\033[0m\]\[\033[36m\] \w\[\033[0m\]\[\033[1m\]\[\033[37m\] \$ \[\033[0m\]"
  11. # fi
  12. # export PS1=$MYPROMPT
  13. #
  14. # Note 2: The theme looks very nice with "FantasqueSansMono Nerd Font" https://github.com/ryanoasis/nerd-fonts
  15. override_git_prompt_colors() {
  16. GIT_PROMPT_THEME_NAME="Plague Doctor"
  17. GIT_PROMPT_ONLY_IN_REPO=1
  18. GIT_PROMPT_LEADING_SPACE=0
  19. GIT_PROMPT_PREFIX="[ "
  20. GIT_PROMPT_SUFFIX=" ]"
  21. GIT_PROMPT_SEPARATOR=" |"
  22. GIT_PROMPT_STAGED=" ${Red}● ${ResetColor}"
  23. GIT_PROMPT_CONFLICTS=" ${Red}✖ ${ResetColor}"
  24. GIT_PROMPT_CHANGED=" ${Blue}✚ ${ResetColor}"
  25. GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
  26. GIT_PROMPT_STASHED=" ${BoldBlue}⚑ ${ResetColor}"
  27. GIT_PROMPT_CLEAN=" ${BoldGreen}✔ ${ResetColor}"
  28. GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="✭"
  29. GIT_PROMPT_COMMAND_OK="${Green}✔ "
  30. GIT_PROMPT_COMMAND_FAIL="${Red}✘ "
  31. GIT_PROMPT_START_USER="${BoldBlue} ${ResetColor}"
  32. GIT_PROMPT_START_ROOT="${BoldRed}❖ ${ResetColor}"
  33. GIT_PROMPT_END_USER="\n_LAST_COMMAND_INDICATOR_${White}${Time12a}${ResetColor} ${BoldGreen}\\u${White}@${BoldYellow}\\h ${Cyan}${PathShort}${ResetColor}${BoldWhite} $ ${ResetColor}"
  34. GIT_PROMPT_END_ROOT="\n_LAST_COMMAND_INDICATOR_${White}${Time12a}${ResetColor} ${BoldRed}\\u${White}@${BoldYellow}\\h ${Cyan}${PathShort}${ResetColor}${BoldRed} # ${ResetColor}"
  35. }
  36. reload_git_prompt_colors "Plague Doctor"