Skip to content

Instantly share code, notes, and snippets.

@hauntedhost
Created March 20, 2019 20:36
Show Gist options
  • Save hauntedhost/302e36a494029293f15ed2bc1a059a26 to your computer and use it in GitHub Desktop.
Save hauntedhost/302e36a494029293f15ed2bc1a059a26 to your computer and use it in GitHub Desktop.
# ~/.bash_profile
__GIT_PROMPT_DIR=/usr/local/opt/bash-git-prompt/share
GIT_PROMPT_THEME=Custom
source "${__GIT_PROMPT_DIR}/gitprompt.sh"
# ~/.git-prompt-colors.sh
override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Custom"
GIT_PROMPT_FETCH_REMOTE_STATUS=0
GIT_PROMPT_IGNORE_STASH=1
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0
GIT_PROMPT_SHOW_UPSTREAM=0
GIT_PROMPT_SHOW_UPSTREAM=1
GIT_SHOW_UNTRACKED_FILES=0
GIT_PROMPT_PREFIX="("
GIT_PROMPT_SUFFIX=")"
GIT_PROMPT_SEPARATOR=""
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING=" "
GIT_PROMPT_UPSTREAM=""
GIT_PROMPT_BRANCH="${White}"
# GIT_PROMPT_CLEAN=" ${White}✔" # clean repo
GIT_PROMPT_CLEAN="" # clean repo
GIT_PROMPT_CHANGED=" ${Red}●" # changed
GIT_PROMPT_UNTRACKED=" ${BoldRed}●" # untracked
GIT_PROMPT_STAGED=" ${Green}✚" # staged
GIT_PROMPT_CONFLICTS=" ${Red}✖" # conflicts
GIT_PROMPT_COMMAND_FAIL=" ${Red}✘" # failboat
GIT_PROMPT_VIRTUALENV="(${BoldGreen}>>>_VIRTUALENV_${ResetColor}) "
GIT_PROMPT_START_USER="${BoldMagenta}$(whoami)@$(hostname) ${BoldYellow}${PathShort}${ResetColor}"
GIT_PROMPT_END_USER="${ResetColor} "
GIT_PROMPT_END_ROOT="${BoldRed} # "
}
reload_git_prompt_colors "Single_line_NoExitState"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment