open Google Chrome URL from os terminal

Learn how to open open Google Chrome URL from os terminal.

To open google chrome url from your terminal type:

open -a "Google Chrome"  "http://mijat.test/blog?q=open google chrome"

To create alias open your terminal and type

vi ~/.zshrc

and add

alias mijat='f() { open -a "Google Chrome"  "http://mijat.test/blog?q=$1 };f'

How to use it?

mijat "open google chrome"
;