Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates > by-pkgid > 7155ab58a129434d134eccdd3a127326 > files > 1

git-prompt-2.7.6-1.mga5.i586.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
  export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 >/dev/null  2>\&1 \&\& __git_ps1 \" (%s)\")\]|")"
fi