I've learned how to kill it by simply using
pkill Chrome
but how do I open it in bash in OS X ?
You can use /usr/bin/open -a command to run your browser.
adding --args will open the browser from the command line and go to the target URL
/usr/bin/open -a "/Applications/Google Chrome.app" --args 'http://google.com/'
/Applications/Safari.app/Contents/MacOS/Safari & sleep 1 && osascript -e 'tell application "Safari" to open location "http://www.google.com"'This should do it:
$ open -a "Google Chrome"
or
$ open -a Google\ Chrome
More information:
$ manx open
-a option.You should not need the full path of open as bash already knows where to find this.
It also knows where to find Chrome.
However you do need the full path of Chrome:
open -a "Google Chrome" --args 'gmail.com'