Skip to content

Instantly share code, notes, and snippets.

@disktnk
Created June 25, 2019 00:38
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 disktnk/eaecdc73277ad21c4ad7292cf26d03fa to your computer and use it in GitHub Desktop.
Save disktnk/eaecdc73277ad21c4ad7292cf26d03fa to your computer and use it in GitHub Desktop.
# This is the custom theme template for gitprompt.sh
override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Custom"
GIT_PROMPT_START_USER="${BoldCyan}${USER}@${HOSTNAME%%.*} ${ResetColor}_LAST_COMMAND_INDICATOR_ ${ResetColor}${Yellow}${PathShort}${ResetColor}"
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
}
reload_git_prompt_colors "Custom"
@disktnk
Copy link
Author

disktnk commented Jun 25, 2019

GIT_PROMPT_THEME=Custom
GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh
GIT_PROMPT_ONLY_IN_REPO=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment