Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > eeea812ccca8b58558f707a8826503f2 > files > 1

git-prompt-2.21.1-1.1.mga7.armv7hl.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