git bash_completion does not work - solved (?)

Stefan Scheidt 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?

Regards
Stefan

--  
Stefan Scheidt


Am Sonntag, 15. Juli 2012 um 22:01 schrieb Stefan Scheidt:

> Hi,  
>  
> 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 @1.7.11.2_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
> fi
>  
>  
> with the new "profile.d".
>  
> Any Ideas why bash_completion does not work for git?
>  
> Regards
> Stefan
>  
> --  
> Stefan Scheidt
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120715/00d6e5a1/attachment.html>


More information about the macports-users mailing list