diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2018-03-11 21:42:10 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2018-03-11 21:42:10 -0400 |
commit | 687a64c30fa70eb2a27cba09599c33a68b18d910 (patch) | |
tree | 69c2ccd1b00528d725c7c758adf37daf0b729b34 /bash/.git-prompt-colors.sh | |
parent | d2caf851eac8284d134f5a440b65a492dd08039f (diff) |
Adds git-bash-prompt
Also makes minor changes to other files
Diffstat (limited to 'bash/.git-prompt-colors.sh')
-rw-r--r-- | bash/.git-prompt-colors.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bash/.git-prompt-colors.sh b/bash/.git-prompt-colors.sh new file mode 100644 index 0000000..ff8a38a --- /dev/null +++ b/bash/.git-prompt-colors.sh @@ -0,0 +1,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" |