Created
August 2, 2021 21:11
-
-
Save beli-sk/2340519b3372d41554ec36bea527d456 to your computer and use it in GitHub Desktop.
git prompt on Gentoo
This file contains 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
# /etc/bash/bashrc.d/git-prompt.sh | |
. /usr/share/git/git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
if ${use_color} ; then | |
PS1=`echo "$PS1" | sed -r 's| \\\\\\$|\\\[\\\\033[01;31m\\\]$(__git_ps1)\\\[\\\\033[01;34m\\\] \\\\$|'` | |
else | |
PS1=`echo "$PS1" | sed -r 's| \\\\\\$|$(__git_ps1) \\\\$|'` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment