Custom.bgptemplate 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # This is the custom theme template for gitprompt.sh
  2. # These are the defaults from the "Default" theme
  3. # You just need to override what you want to have changed
  4. override_git_prompt_colors() {
  5. GIT_PROMPT_THEME_NAME="Custom"
  6. # Time12a="\$(date +%H:%M)"
  7. # PathShort="\w";
  8. ## These are the color definitions used by gitprompt.sh
  9. # GIT_PROMPT_PREFIX="[" # start of the git info string
  10. # GIT_PROMPT_SUFFIX="]" # the end of the git info string
  11. # GIT_PROMPT_SEPARATOR="|" # separates each item
  12. # GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
  13. # GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
  14. # GIT_PROMPT_STAGED="${Red}●" # the number of staged files/directories
  15. # GIT_PROMPT_CONFLICTS="${Red}✖ " # the number of files in conflict
  16. # GIT_PROMPT_CHANGED="${Blue}✚ " # the number of changed files
  17. # GIT_PROMPT_REMOTE=" " # the remote branch name (if any) and the symbols for ahead and behind
  18. # GIT_PROMPT_UNTRACKED="${Cyan}…" # the number of untracked files/dirs
  19. # GIT_PROMPT_STASHED="${BoldBlue}⚑ " # the number of stashed files/dir
  20. # GIT_PROMPT_CLEAN="${BoldGreen}✔" # a colored flag indicating a "clean" repo
  21. ## For the command indicator, the placeholder _LAST_COMMAND_STATE_
  22. ## will be replaced with the exit code of the last command
  23. ## e.g.
  24. ## GIT_PROMPT_COMMAND_OK="${Green}✔-_LAST_COMMAND_STATE_ " # indicator if the last command returned with an exit code of 0
  25. ## GIT_PROMPT_COMMAND_FAIL="${Red}✘-_LAST_COMMAND_STATE_ " # indicator if the last command returned with an exit code of other than 0
  26. # GIT_PROMPT_COMMAND_OK="${Green}✔" # indicator if the last command returned with an exit code of 0
  27. # GIT_PROMPT_COMMAND_FAIL="${Red}✘-_LAST_COMMAND_STATE_" # indicator if the last command returned with an exit code of other than 0
  28. ## template for displaying the current virtual environment
  29. ## use the placeholder _VIRTUALENV_ will be replaced with
  30. ## the name of the current virtual environment (currently CONDA and VIRTUAL_ENV)
  31. # GIT_PROMPT_VIRTUALENV="(${Blue}_VIRTUALENV_${ResetColor}) "
  32. # template for displaying the current remote tracking branch
  33. # use the placeholder _UPSTREAM_ will be replaced with
  34. # the name of the current remote tracking branch
  35. # GIT_PROMPT_UPSTREAM=" {${Blue}_UPSTREAM_${ResetColor}}"
  36. ## _LAST_COMMAND_INDICATOR_ will be replaced by the appropriate GIT_PROMPT_COMMAND_OK OR GIT_PROMPT_COMMAND_FAIL
  37. # GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${Yellow}${PathShort}${ResetColor}"
  38. # GIT_PROMPT_START_ROOT="_LAST_COMMAND_INDICATOR_ ${GIT_PROMPT_START_USER}"
  39. # GIT_PROMPT_END_USER=" \n${White}${Time12a}${ResetColor} $ "
  40. # GIT_PROMPT_END_ROOT=" \n${White}${Time12a}${ResetColor} # "
  41. ## Please do not add colors to these symbols
  42. # GIT_PROMPT_SYMBOLS_AHEAD="↑·" # The symbol for "n versions ahead of origin"
  43. # GIT_PROMPT_SYMBOLS_BEHIND="↓·" # The symbol for "n versions behind of origin"
  44. # GIT_PROMPT_SYMBOLS_PREHASH=":" # Written before hash of commit, if no name could be found
  45. # GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="L" # This symbol is written after the branch, if the branch is not tracked
  46. # branch name(s) that will use $GIT_PROMPT_MASTER_BRANCH color
  47. # To specify multiple branches, use
  48. # shopt -s extglob
  49. # GIT_PROMPT_MASTER_BRANCHES='@(master|production)'
  50. # GIT_PROMPT_MASTER_BRANCHES="master"
  51. }
  52. reload_git_prompt_colors "Custom"