Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created May 1, 2022 03:20
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 wolfeidau/38e1cd344cec4df38a280fa8393efd3f to your computer and use it in GitHub Desktop.
Save wolfeidau/38e1cd344cec4df38a280fa8393efd3f to your computer and use it in GitHub Desktop.
Some code i use to configure my git prompt
source /usr/lib/git-core/git-sh-prompt
# export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM=verbose GIT_PS1_DESCRIBE_STYLE=branch GIT_PS1_SHOWCOLORHINTS=1
export GIT_PS1_HIDE_IF_PWD_IGNORED=1
# Colorful prompt for Bash!
export PS1='\[\e[0;36m\][\A] \u@\h:\[\e[0m\e[0;32m\]\W\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[0;37m\] \$\[\e[0m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment