Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > main-backports-src > by-pkgid > 6bf3fb986b8cb94ecc684b5bbbcfb553 > files > 1

git-1.7.9-1mdv2010.2.src.rpm

# Include the current git branch in the prompt

if type __git_ps1 &>/dev/null; then
  export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")"
fi