Howto configure bash startup scripts
From Wikihowto
When bash starts up, there is a sequence of scripts initialized
Contents |
[edit] Configuration files
[edit] Bash Login
These are execute when logging in or starting a new terminal, such as xterm. Listed in the order they are executed.
- /etc/profile
- /etc/bash/bashrc
- ~/.bash_profile
- if( ~/.bash_profile doesn't exists )
- ~/.bash_login
- if( ~/.bash_login doesn't exists )
- ~/.profile
- if( ~/.bash_profile doesn't exists )
- ~/.bashrc
- /etc/bashrc
[edit] Non-login
For a non-login terminal, like scripts. Listed in the order they are executed.
- /etc/bash/bashrc
- ~/.bashrc
[edit] logout
~/.bash_logout is executed when a login terminal is logging out
these can be programed just like any shell scripts.
[edit] Settings
Common things set in bash scripts aliases, environment variables, and
