|
|
|
@ -1,7 +1,6 @@ |
|
|
|
# These are the color definitions used by gitprompt.sh |
|
|
|
# These are the color definitions used by gitprompt.sh |
|
|
|
|
|
|
|
|
|
|
|
define_git_prompt_colors() { |
|
|
|
define_git_prompt_colors() { |
|
|
|
|
|
|
|
|
|
|
|
Time12a="\$(date +%H:%M)" |
|
|
|
Time12a="\$(date +%H:%M)" |
|
|
|
PathShort="\w" |
|
|
|
PathShort="\w" |
|
|
|
|
|
|
|
|
|
|
|
@ -20,6 +19,12 @@ define_git_prompt_colors() { |
|
|
|
GIT_PROMPT_STASHED="${BoldBlue}⚑ " # the number of stashed files/dir |
|
|
|
GIT_PROMPT_STASHED="${BoldBlue}⚑ " # the number of stashed files/dir |
|
|
|
GIT_PROMPT_CLEAN="${BoldGreen}✔" # a colored flag indicating a "clean" repo |
|
|
|
GIT_PROMPT_CLEAN="${BoldGreen}✔" # a colored flag indicating a "clean" repo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For the command indicator, the placeholder _LAST_COMMAND_STATE_ |
|
|
|
|
|
|
|
# will be replaced with the exit code of the last command |
|
|
|
|
|
|
|
# e.g. |
|
|
|
|
|
|
|
# GIT_PROMPT_COMMAND_OK="${Green}✔-_LAST_COMMAND_STATE_ " # indicator if the last command returned with an exit code of 0 |
|
|
|
|
|
|
|
# GIT_PROMPT_COMMAND_FAIL="${Red}✘-_LAST_COMMAND_STATE_ " # indicator if the last command returned with an exit code of other than 0 |
|
|
|
|
|
|
|
|
|
|
|
GIT_PROMPT_COMMAND_OK="${Green}✔ " # indicator if the last command returned with an exit code of 0 |
|
|
|
GIT_PROMPT_COMMAND_OK="${Green}✔ " # indicator if the last command returned with an exit code of 0 |
|
|
|
GIT_PROMPT_COMMAND_FAIL="${Red}✘ " # indicator if the last command returned with an exit code of other than 0 |
|
|
|
GIT_PROMPT_COMMAND_FAIL="${Red}✘ " # indicator if the last command returned with an exit code of other than 0 |
|
|
|
|
|
|
|
|
|
|
|
|