Persistent Aliases

How

  1. Open your shell configuration file: nano ~/.zshrc (or ~/.bash_profile for bash)
  2. Add your alias on a new line: alias ll='ls -la'
  3. Save and exit (in nano: Control + X, then Y, then Enter)
  4. Run source ~/.zshrc to load the changes, or open a new terminal window

Try this

Add alias ..='cd ..' to your ~/.zshrc file, save it, then open a new terminal window. Type .. to go up one directory level.

Why it works

Teach your terminal once.

Open full demonstration ↗