While I don't use bash, if I read the man page correctly, that
could go in /etc/profile.
That file is also read by sh and ksh (at least; maybe zsh too), so
if you want actions to only take place for bash, you might do
something like:
case "$0" in
-bash) PATH=...whatever...;export PATH
# anything else specific to bash could go here...but try to stick
# to syntax that is valid with any superset of sh, because some
# of them may look at the syntax even of statements they don't
# execute...
;;
esac
(the dash because it's a "login" shell, and the bit of magic that causes
shells to behave that way is that they're invoked with an argv[0] starting
with a dash)
This message posted from opensolaris.org