Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 215f8d936d7f0733c22eb92bd1d21a5e > files > 1

git-prompt-2.13.3-1.mga6.x86_64.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