blob: ff8a38a7fde97803c2338f539d83185b4324198b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# This is an alternative approach. Single line minimalist in git repo.
override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Custom"
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="${Cyan}${PathShort}${ResetColor}"
GIT_PROMPT_END_USER="${ResetColor} $ "
GIT_PROMPT_END_ROOT="${BoldRed} # "
}
reload_git_prompt_colors "Custom"
|