Startup Files: .bashrc, .zshrc and source

Bash reads ~/.bashrc every time a terminal opens, and a Mac's zsh reads ~/.zshrc, so aliases and functions you add there are always ready; keep a backup before you edit it, and use source to load your changes into the shell you're in.

Updated

Cheat sheet for the lesson Startup Files: .bashrc, .zshrc and source: Bash reads ~/.bashrc every time a terminal opens, and a Mac's zsh reads ~/.zshrc, so aliases and functions you add there are always ready; keep a backup before you edit it, and use source to load your changes into the shell…
Category
Bash
Level
Apprentice
Tags
<source>, bashrc-and-profile, configuration-file, linux, login-shell, unix