Skip to content

Instantly share code, notes, and snippets.

@steverandy
Created June 28, 2011 12:21
Show Gist options
  • Save steverandy/1051022 to your computer and use it in GitHub Desktop.
Save steverandy/1051022 to your computer and use it in GitHub Desktop.
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment