Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 7f0b57249e8b07a3d44550f87562dd16 > files > 1

git-2.21.4-1.mga7.src.rpm

# Include the current git branch in the prompt

if [ -f /usr/share/doc/git-core/contrib/completion/git-prompt.sh ]; then
  . /usr/share/doc/git-core/contrib/completion/git-prompt.sh
  PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 >/dev/null  2>\&1 \&\& __git_ps1 \" (%s)\")\]|")"
fi