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.

Source