Skip to content

Instantly share code, notes, and snippets.

@ibreathebsb
Last active July 16, 2023 21:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibreathebsb/6ff1cb0df8d98aa14cb867324bef9812 to your computer and use it in GitHub Desktop.
Save ibreathebsb/6ff1cb0df8d98aa14cb867324bef9812 to your computer and use it in GitHub Desktop.
open edge in terminal on macos
  1. open your .zshrc or .bashrc file

I'm using zsh so the command is vim ~/.zsh

  1. add an alias for edge

alias edge="/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge"

  1. open a new session, or run source ~/.zshrc(`source ~/.bashrc if you are using bash) to make the alias work
  2. type edge in the new session and press enter
@ibreathebsb
Copy link
Author

ibreathebsb commented Dec 7, 2020

Update:
To get rid of output from console generated from edge, change the alias as following:
alias edge="/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge > /dev/null 2>&1"

@leolelego
Copy link

More a MacOS way than UNIX.

alias edge="open -a Microsoft\ Edge $1"

ex: edge https://gist.github.com/ibreathebsb/6ff1cb0df8d98aa14cb867324bef9812

@kunehenry
Copy link

kunehenry commented Jul 16, 2023

Thanks! This is very helpful for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment