[Bug 1088960] Re: Missing __git_ps1
Anders Kaseorg
andersk at mit.edu
Wed Dec 12 00:11:30 UTC 2012
bash_completion is an extensible mechanism to augment bash’s builtin
completion of filenames with context-sensitive completion of many other
things, such as git subcommands.
anders at fixed-disk:~$ git r<TAB>
rebase relink replace-author rm
rebase-multi remote request-pull
rebase-onto-many repack reset
reflog replace revert
Even though Ubuntu’s global /etc/bash.bashrc does not enable
bash_completion, the default ~/.bashrc does. You can find a clean copy
of the default ~/.bashrc in /etc/skel/.bashrc (which is used for
creating new accounts).
** Changed in: git (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/1088960
Title:
Missing __git_ps1
Status in “git” package in Ubuntu:
Invalid
Bug description:
I have been using this in my bashrc. It no longer works, as of Ubuntu
12.10.
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
. /usr/local/git/contrib/completion/git-completion.bash
fi
export GIT_PS1_SHOWDIRTYSTATE=true
export PS1="\[\033[36m\][\!][\t] \[\033[1;33m\]\u\[\033[0m\]@\h:\[\033[36m\][\w]:\[\033[0m\]\$(__git_ps1)
---
I get "__git_ps1: command not found" after every prompt. (Obviously I
will remove __git_ps1 for now from the prompt.) Please fix.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1088960/+subscriptions
More information about the foundations-bugs
mailing list