12345678910111213141516171819202122232425262728293031323334 |
- # This is an alternative approach. Single line minimalist in git repo.
- override_git_prompt_colors() {
- GIT_PROMPT_THEME_NAME="Single_line_Minimalist"
- function prompt_callback {
- local PS1="$(gp_truncate_pwd)"
- gp_set_window_title "$PS1"
- }
- Time12a="\$(date +%H:%M:%S)"
- PathShort="\W";
- GIT_PROMPT_PREFIX="["
- GIT_PROMPT_SUFFIX="]"
- GIT_PROMPT_SEPARATOR=" "
- GIT_PROMPT_STAGED="${Red}●${ResetColor}"
- GIT_PROMPT_CONFLICTS="${Red}✖${ResetColor}"
- GIT_PROMPT_CHANGED="${Blue}✚${ResetColor}"
- GIT_PROMPT_UNTRACKED="${Cyan}…${ResetColor}"
- GIT_PROMPT_STASHED="${BoldBlue}⚑${ResetColor}"
- GIT_PROMPT_CLEAN="${BoldGreen}✔${ResetColor}"
- GIT_PROMPT_COMMAND_OK="${Green}✔"
- GIT_PROMPT_COMMAND_FAIL="${Red}✘"
- GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${White}${Time12a}${ResetColor} ${Cyan}${PathShort}${ResetColor}"
- GIT_PROMPT_END_USER="${ResetColor} $ "
- GIT_PROMPT_END_ROOT="${BoldRed} # "
- }
- reload_git_prompt_colors "Single_line_Minimalist"
|