BASH startup scripts
There are two files that you can use to setup your environment with the BASH shell: `~/.bash_profile` and `~/.bashrc`.~/.bash_profile
is processed for login shells, but ~/.bashrc
is only for any interactive bash shells. If you want to make sure ~/.bashrc
is used for login shells, source it from ~/.bash_profile
using something like:
[[ -f ~/.bashrc ]] && . ~/.bashrc
If you want the same script to be used for both, just symlink one to the other.
Last updated: 13/02/2009