Single_line_Minimalist.bgptheme 995 B

12345678910111213141516171819202122232425262728293031323334
  1. # This is an alternative approach. Single line minimalist in git repo.
  2. override_git_prompt_colors() {
  3. GIT_PROMPT_THEME_NAME="Single_line_Minimalist"
  4. function prompt_callback {
  5. local PS1="$(gp_truncate_pwd)"
  6. gp_set_window_title "$PS1"
  7. }
  8. Time12a="\$(date +%H:%M:%S)"
  9. PathShort="\W";
  10. GIT_PROMPT_PREFIX="["
  11. GIT_PROMPT_SUFFIX="]"
  12. GIT_PROMPT_SEPARATOR=" "
  13. GIT_PROMPT_STAGED="${Red}●${ResetColor}"
  14. GIT_PROMPT_CONFLICTS="${Red}✖${ResetColor}"
  15. GIT_PROMPT_CHANGED="${Blue}✚${ResetColor}"
  16. GIT_PROMPT_UNTRACKED="${Cyan}…${ResetColor}"
  17. GIT_PROMPT_STASHED="${BoldBlue}⚑${ResetColor}"
  18. GIT_PROMPT_CLEAN="${BoldGreen}✔${ResetColor}"
  19. GIT_PROMPT_COMMAND_OK="${Green}✔"
  20. GIT_PROMPT_COMMAND_FAIL="${Red}✘"
  21. GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${White}${Time12a}${ResetColor} ${Cyan}${PathShort}${ResetColor}"
  22. GIT_PROMPT_END_USER="${ResetColor} $ "
  23. GIT_PROMPT_END_ROOT="${BoldRed} # "
  24. }
  25. reload_git_prompt_colors "Single_line_Minimalist"