Skip to content

Instantly share code, notes, and snippets.

@ibreathebsb
Last active July 8, 2024 03:05
Show Gist options
  • 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