Persistent Aliases
How
- Open your shell configuration file:
nano ~/.zshrc(or~/.bash_profilefor bash) - Add your alias on a new line:
alias ll='ls -la' - Save and exit (in nano: Control + X, then Y, then Enter)
- Run
source ~/.zshrcto 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.