- open your .zshrc or .bashrc file
code ~/.zshrc
- add an alias for edge
MacOS way to do it:
alias edge="open -a Microsoft\ Edge $1"
alternative way:
alias edge="/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge"
- open a new session, or run source ~/.zshrc(`source ~/.bashrc if you are using bash) to make the alias work
- type edge in the new session and press enter