Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkalfigo/cc0d662c188ec81e7b5128457bc9fe2e to your computer and use it in GitHub Desktop.
Save tkalfigo/cc0d662c188ec81e7b5128457bc9fe2e to your computer and use it in GitHub Desktop.
# Add this file as ~/.git-prompt-colors.sh
# This is the custom theme template for gitprompt.sh
override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Custom"
GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${ResetColor} ${Yellow}${PathShort}${ResetColor}"
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
GIT_PROMPT_END_USER=" \n${Green}[${USER}@${HOSTNAME%%.*}] ${Time12a}${ResetColor} $ "
}
reload_git_prompt_colors "Custom"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment