Bash startup
From ym2149.org
Jump to navigationJump to search
- there is a system bashrc and a user bashrc
- similarly for profiles
- system profile includes system bashrc
- similarly for user files
- neither bashrc proceeds when non-interactive
profiles | bashrcs | $BASH_ENV | |
---|---|---|---|
plain | no | no | yes |
interactive | no | yes | no |
login | yes | no (profiles) | no |
interactive login | yes | yes (profiles) | no |
- define BASH_ENV in profile
- source $BASH_ENV in bashrc
- then all but non-interactive login shell has functions