git bash_completion does not work - solved (?)
stefan.scheidt at me.com
Sun Jul 15 13:13:13 PDT 2012
It seems I have solved my problem:
Cause: My login shell was still the old /bin/bash.
Solution: I added /opt/local/bin/bash to /etc/shells and then did "chsh -s /opt/local/bin/bash"
Now bash_completion works!
Question: Is this the right way to use MacPorts bash as login shell?
Am Sonntag, 15. Juli 2012 um 22:01 schrieb Stefan Scheidt:
> a couple of days ago I updated my ports (sudo port upgrade outdated), and now bash_completion for git does not work.
> port installed says:
> bash @4.2.29_0 (active)
> bash-completion @2.0_1 (active)
> git-core @220.127.116.11_0+bash_completion+credential_osxkeychain+doc+pcre+python27+svn (active)
> bash -version say
> GNU bash, Version 4.2.29(2)-release (i386-apple-darwin11.3.0)
> and in .bashrc (sourced by .bash_profile) I have added this:
> if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
> . /opt/local/etc/profile.d/bash_completion.sh
> with the new "profile.d".
> Any Ideas why bash_completion does not work for git?
> Stefan Scheidt
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users