git bash_completion does not work - solved (?)

Rodolfo Aramayo raramayo at gmail.com
Sat Jul 21 13:57:07 PDT 2012


Hi,

I have taken the freedom of summarizing the "proper" way of
configuring Bash as per this discussion

##################################################################
Proper setting of BASH:

$ port install bash

Testing current configuration:

$ which bash
/opt/local/bin/bash

$ bash --version
GNU bash, version 4.2.29(2)-release (i386-apple-darwin10.8.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ echo $SHELL
/bin/bash

$ echo $BASH
/bin/bash

$Test the settings for your account as present in the dscl database:
dscl . -read /Users/yourusername | grep ‘UserShell:’
UserShell: /bin/bash

Configuring BASH:

1. Use your favorite text processor
sudo emacs /etc/shells
	add: /opt/local/bin/bash
	as first on the list
	save

2. Run:
	chsh -u your_username -s /opt/local/bin/bash

Testing Proper Configuration:
$ which bash
/opt/local/bin/bash

$ bash --version
GNU bash, version 4.2.29(2)-release (i386-apple-darwin10.8.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ echo $BASH
/opt/local/bin/bash

$ echo $SHELL
/opt/local/bin/bash

$Test the settings for your account as present in the dscl database:
dscl . -read /Users/yourusername | grep ‘UserShell:’
/opt/local/bin/bash
##################################################################

I found that there is no need to:

Go to Terminal>Preferences>Startup>Command (complete path):
	Add to the top of the list:
/opt/local/bin/bash -l

These settings can be left default (I am running MacOSX10.6.8)

Now my question to all of you is:

Does one need to do this for the ‘root’ account as well?

Thanks

--R


More information about the macports-users mailing list