Main / How To Set Up Zsh
It took me a long time to figure that out, but the reason to use Zsh instead of another shell is that it allows many meaningful customizations. In less than 24h since switching, I accumulated a nice collection (and even more at home).
Long story short, add this to your .zshrc:
# This won't work if promptinit is enabled.
PS1='%B%F{cyan}%n@%m%f%b %# '
RPS1='%B%F{magenta}%~%f%b'
setopt autocd
web=~/public_html/
gem=~/public_gemini/
: ~web ~gem
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias -s py=python3
(Note the prompt color: I made it different on each machine so I can tell at a glance where I'm typing.)
If you started with the default .zshrc (option 2 at first run), remember to comment out the lines related to promptinit near the top.
For more ways to set up your shell (outside of the Zsh homepage), see: