open https://superuser.com
我可以用和打开常规 URL open -a "Google Chrome.app" https://superuser.com
,但这不适用于chrome://
URL,例如
$ open -a "Google Chrome.app" chrome://bookmarks
The file /Users/andreas/chrome:/bookmarks does not exist.
如何chrome://
从 Mac OS X 上的命令行打开 URL?
答案1
chrome-cli可能会起作用:
chrome-cli open <url> (Open url in new tab)
chrome-cli open <url> -n (Open url in new window)
chrome-cli open <url> -i (Open url in new incognito window)
chrome-cli open <url> -t <id> (Open url in specific tab)
chrome-cli open <url> -w <id> (Open url in new tab in specific window)