This is how you can open Chrome from a terminal:
- Open a Terminal and type open -e ~/.bashrc (or ~/.zshrc if you’re using Oh-My-Zsh)
- Add this to the end of the file: alias chrome=’open „/Applications/Google Chrome.app“‚
This adds an alias called chrome which opens the Chrome application.
Now open your terminal and type chrome to start Google Chrome.
This is how to open Google Chrome without extensions enabled:
- Open a Terminal and type open -e ~/.bashrc (or ~/.zshrc if you’re using Oh-My-Zsh)
- Add this alias to .bashrc: alias chrome-extensions-disabled=’open „/Applications/Google Chrome.app“ –args –disable-extensions‘
Open Chrome in incognito mode from terminal:
- Add this alias to .bashrc: alias chrome-incognito=’open „/Applications/Google Chrome.app“ –args –incognito‘