.bashrc .profile .bash_profile

Peter B. West lists at pbw.id.au
Mon Oct 5 05:30:05 PDT 2009


Many years ago (when bash2 was being introduced) I tried to work out a  
set of startup files that would work in all the environments I might  
use. I didn't get there, but found some workable compromises, which I  
have used as a basis since.

The main difference, for me, was between interactive and non- 
interactive shells, so I tried to keep these apart.

Get rid of .bash_profile and .bash_login. Better still,  
make .bash_profile a link to .profile.

.profile has some leading comments that try to describe the conditions  
applying (still, I think) in the various circumstances in which the  
shell gets started.

.interactive has the interactive stuff.

.bashrc tends to get sourced always, one way or another.

pathFuncs has some very useful path manipulation stuff.

dirFuncs provides some extended aliases for pushd and popd.

These files have been following me around for a while, so there if  
probably a lot of cruft in there.

Peter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: .profile
Type: application/octet-stream
Size: 3089 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091005/a24d8ab9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .bashrc
Type: application/octet-stream
Size: 3593 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091005/a24d8ab9/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .interactive
Type: application/octet-stream
Size: 1168 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091005/a24d8ab9/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pathFuncs
Type: application/octet-stream
Size: 4966 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091005/a24d8ab9/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dirFuncs
Type: application/octet-stream
Size: 907 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091005/a24d8ab9/attachment-0004.obj>


More information about the macports-users mailing list