.bashrc, .zshrc and dotfiles

Hidden settings files in your home folder that run every time a shell starts.

Also called: .bashrc, .zshrc, .profile, alias

Source
General
Language
Bash

In plain English

Aliases, PATH changes and prompt settings live here. After editing, reload with source.

Example

My aliases live in .zshrc, so they work in every new terminal.

In code

echo 'alias art="php artisan"' >> ~/.zshrc
source ~/.zshrc

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30