No Ubuntu package has ever shipped files in /usr/local.  Either you
installed your own copy of Git manually in /usr/local, in which case you
get to keep both pieces, or you were actually getting __git_ps1 from
somewhere else.  In Ubuntu, you get __git_ps1 via these lines in the
default ~/.bashrc:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

(which eventually cause /etc/bash_completion.d/git to be sourced).  Are
those lines, or something similar, still present in your ~/.bashrc?

Please also check what version of git is installed (dpkg-query -W git).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1088960

Title:
  Missing __git_ps1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1088960/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to