如何在Mac OS X的标签页中使用特定页面从命令行打开Chrome?


33

从Mac OS X的命令行中,如何打开Goog​​le Chrome浏览器,并在选项卡中打开特定的URL列表,并固定某些URL?

Answers:



13

打开Chrome的别名:

alias chrome="/Applications/Google\\ \\Chrome.app/Contents/MacOS/Google\\ \\Chrome"

在标签中有2个给定页面的情况下打开Chrome的别名:

alias chromex="chrome --pinned-tab-count=2 http://www.google.com http://www.microsoft.com"

打开2个固定页面

chromex


1
--pinned-tab-count标志已被删除:bugs.chromium.org/p/chromium/issues/detail?id=37596
thinkterry

4

另外,我有执行此操作的脚本:

open -a /Applications/Google\ Chrome.app http://google.com http://stackoverflow.com
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.