Robert
Robert

Reputation: 3870

How to open Chrome with defined tabs?

I'm quite new in .sh, I'm wonder how to open e.g.: Chrome web browser with two tabs, let's say that can be 'google.com' and 'yahoo.com'. So far I find out how to simply open 'Chrome' but I can't find how to force opening tabs in it.

I would be grateful if someone would gave me some hint.

Upvotes: 0

Views: 69

Answers (1)

mklement0
mklement0

Reputation: 437131

On OS X, use the open CLI:

open -a 'Google Chrome' http://www.example.org http://google.com

Note that the protocol specifier (http://) is mandatory.

Upvotes: 1

Related Questions