Make alias (shortcut) in terminal Mac
This works for Big Sur.
Don't use spaces for between the name of the alias and the command.
Code:
nano .zsh
alias code='open - a "visual studio code"'
control-o to save
enter to confirm
control-x to exit
To make alias usable either restart terminal or type:
source .zshrc
Call alias as such
codeopen filename
Channel about physics, computer science and maths.