How can I launch Chrome with flags from command line more concisely?

Just make an alias in your .bashrc or .bash_profile

alias ogc="open -a Google\ Chrome --args --disable-web-security"

And then reload your shell.

exec $SHELL

Now, every time you type ogc (or whatever you want to call it) in your terminal, it will run the full command open -a Google\ Chrome --args --disable-web-security

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)