[OS X Emacs] How to configure '~/.bash_profile' and '~/.bashrc' to work with Aquamacs?

Art Werschulz agw at comcast.net
Fri Jul 8 18:12:22 EDT 2011


On Jul 8, 2011, at 3:44 PM, Christopher M. Balz wrote:

> Thank you Peter.  I made two changes that seem to do the trick (I had earlier done Aquamacs -> Tools -> Install Command Line Tools).  The changes were: a) Remove the '~/.emacs_bash' symlink I'd created; b) Create a '~/.bashrc' file containing an invocation of my alias-setting script; c) Invoke '~/.bashrc' from '~/.bash_profile' (leaving exported env vars in ~/'.bash_profile' where they belong).

A related trick:  My .bash_profile has:

export ENV
if [ -n "$BASH" ]; then . $ENV; fi

The idea here is that .bashrc has things that are common to all shell processes, whereas .bash_profile has commands that only apply to login processes (e.g., daily reminders).

Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?
Internet: agw STRUDEL comcast.net

More information about the MacOSX-Emacs mailing list