File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ define_helpers() {
36
36
NewLine="\n"
37
37
38
38
if [ -n "$ZSH_VERSION" ]; then
39
+ Time12a="%T"
39
40
PathShort="%~"
40
41
NewLine=$'\n'
41
42
fi
@@ -90,8 +91,8 @@ define_undefined_git_prompt_colors() {
90
91
# _LAST_COMMAND_INDICATOR_ will be replaced by the appropriate GIT_PROMPT_COMMAND_OK OR GIT_PROMPT_COMMAND_FAIL
91
92
if [ -z "${GIT_PROMPT_START_USER+x}" ]; then GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${Yellow}${PathShort}${ResetColor}"; fi
92
93
if [ -z "${GIT_PROMPT_START_ROOT+x}" ]; then GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"; fi
93
- if [ -z "${GIT_PROMPT_END_USER+x}" ]; then GIT_PROMPT_END_USER=" \n ${White}${Time12a}${ResetColor} $ "; fi
94
- if [ -z "${GIT_PROMPT_END_ROOT+x}" ]; then GIT_PROMPT_END_ROOT=" \n ${White}${Time12a}${ResetColor} # "; fi
94
+ if [ -z "${GIT_PROMPT_END_USER+x}" ]; then GIT_PROMPT_END_USER=" ${NewLine} ${White}${Time12a}${ResetColor} $ "; fi
95
+ if [ -z "${GIT_PROMPT_END_ROOT+x}" ]; then GIT_PROMPT_END_ROOT=" ${NewLine} ${White}${Time12a}${ResetColor} # "; fi
95
96
96
97
# Please do not add colors to these symbols
97
98
if [ -z ${GIT_PROMPT_SYMBOLS_AHEAD+x} ]; then GIT_PROMPT_SYMBOLS_AHEAD="↑·"; fi # The symbol for "n versions ahead of origin"
You can’t perform that action at this time.
0 commit comments