Bash startup: Difference between revisions

From ym2149.org
Jump to navigationJump to search
(Created page with "* 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 {| class="wikitable" | ! 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...")
 
(No difference)

Latest revision as of 15:25, 19 April 2024

  • 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