An ever-growing cheatsheet for Terminal. I add things that I think are useful but difficult to unearth or understand.


  1. Set up and modify Terminal shortcuts

Set up and modify Terminal shortcuts

  1. Open up Terminal
  2. Run nano ~/.zshenv
  3. Enter your Terminal shortcuts
  4. Save the .zshenv file

Setting a shortcut such as:

alias code="open -a 'Visual Studio Code'"

…will allow you to edit the .zshenv file in your favourite text editor, next time.

See my post on Bash for a primer on what this means. The default shell has changed from Bash to zsh as of macOS Catalina.