.bashrc
A file in your home directory that every new interactive bash reads at startup, used for aliases, functions and prompt settings.
In more detail
Scripts do not read it, so a script must not depend on anything defined there. Login shells read .bash_profile instead, which usually sources .bashrc so both kinds of shell get the same settings.
Related terms
- shell alias — A short name the shell swaps in for the start of a command line, defined with alias name='command'.
- dotfile — A file whose name starts with a dot, such as .bashrc, which ls and globs hide unless asked.
- interactive shell — A shell reading commands from you at a terminal, as opposed to a non-interactive shell running a script.
- source builtin — The builtin that runs a file's commands in the current shell instead of in a new one; the POSIX spelling is a single dot.
Taught in
- Help, History, Completion And Aliases — Bash Scripting & Command Line Automation
- Shell Variables, The Environment And export — Bash Scripting & Command Line Automation