Skip to content

Instantly share code, notes, and snippets.

@partageit
Created October 31, 2017 16:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save partageit/94eac68e43bc882eaaaf06b6f803d790 to your computer and use it in GitHub Desktop.
Save partageit/94eac68e43bc882eaaaf06b6f803d790 to your computer and use it in GitHub Desktop.
My bash-git-prompt configuration
# git prompt, for ~/.bashrc
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_START_USER="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]"
GIT_PROMPT_START_ROOT="${BoldRed}\u@\h${ResetColor}:${BoldBlue}\w${ResetColor}"
GIT_PROMPT_END_USER="\n$ "
GIT_PROMPT_END_ROOT="\n# "
source ~/.bash-git-prompt/gitprompt.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment