- emerge app-shells/bash-completion
- $ find /usr -name git-prompt.sh.bz2 /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2
- cp /usr/share/doc/git-1.8.5.5/git-prompt.sh.bz2 ~
- bunzip2 git-prompt.sh.bz2
- mv git-prompt.sh .git-prompt.sh
- Paste into ~/.bashrc
if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi
export PS1='[\033[01;32m]\u@\h[\033[01;34m] \w[\033[01;33m]$(__git_ps1)[\033[01;34m] $[\033[00m] ' export GIT_PS1_SHOWDIRTYSTATE=1
source ~/.git-prompt.sh
In the current version of gentoo, the git-prompt shell script has moved and is already uncompressed. Replace the last line with: