Created
May 1, 2022 03:20
-
-
Save wolfeidau/38e1cd344cec4df38a280fa8393efd3f to your computer and use it in GitHub Desktop.
Some code i use to configure my git prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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