Created
August 23, 2013 11:20
-
-
Save grenade/6318198 to your computer and use it in GitHub Desktop.
Switch on git-prompt on Fedora Core 18/19 (explanation: http://log.amitshah.net/2012/11/__git_ps1-not-found-after-upgrade-to-fedora-18)
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
cat >/etc/profile.d/git.sh <<'EOF' | |
source /usr/share/git-core/contrib/completion/git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=true | |
export GIT_PS1_SHOWUNTRACKEDFILES=true | |
export PS1='\[\033[00;36m\]\u@\h\[\033[00m\]:\[\033[01;34m\] \w\[\033[00m\]$(__git_ps1 " (%s)")\$ ' | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment