Allow forcing source of .bash_profile.
authorIain Patterson <me@iain.cx>
Sun, 3 Jan 2010 15:48:07 +0000 (15:48 +0000)
committerIain Patterson <me@iain.cx>
Sun, 3 Jan 2010 15:48:07 +0000 (15:48 +0000)
commitfbb8103d9b90c369b770286ea49b99ecb7352d36
tree89b943819b8203c8359c422928b0053e96a1fa7d
parent8258aae3ed4e6059d22911a4ad7e41d40ebe9ac3
Allow forcing source of .bash_profile.

By default .bash_profile is sourced only if we have a controlling
terminal or the shell is a login shell.  Add the ability to force
sourcing by passing the "force" argument to the source command.

  . ~/.bash_profile force

For use in situations where no terminal is available but a full
environment setup is required.
.bash_profile