Re: bash-completion now loads completions dynamically, so __git_ps1 is not defined when you open a shell
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 28, 2012, 23:06 UTC
- Message-ID
- <20120328230642.GA16925@burratino>
- In-Reply-To
- <CANaWP3wu3260uFNzCLJ=YSG1BWFr=ge_6CmMGrG6zLThvFnjcQ@mail.gmail.com>
Kerrick Staley wrote:
Show 5 quoted lines
> Since > bash-completion loads completions on-the-fly in newer versions, the > __git_ps1 function isn't immediately available in a new shell. How > should this be handled? Should users just source git-completion.bash > before they redefine $PS1?
Yes, I think so. Do the release notes for version 2.0 of the /etc/bash_completion wrapper script mention this change?
Thanks, Jonathan