Skip to content

Instantly share code, notes, and snippets.

@grenade
Created August 23, 2013 11:20
Show Gist options
  • Save grenade/6318198 to your computer and use it in GitHub Desktop.
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)
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