prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

Feature Request: Chrome profile flag for `chrome-cli open` #67

Open amfarrell opened 2 years ago

amfarrell commented 2 years ago

As a chrome-cli user, I have multiple google chrome profiles: one for work and one for serous personal stuff and one for recreational personal stuff. I would like to be able to specify which profile I run chrome-cli open with.

It would also be nice for chrome-cli list profiles to list the names of the available google chrome profiles.

amfarrell commented 2 years ago

I imagine the interface could look like:

$ chrome-cli list profiles
[Default]
[Profile 2]

$ chrome-cli open https://xkcd.com/ -p 'Profile 2'

And be based on the profile folders in /Users/$USER/Library/Application Support/Google/Chrome

evanrs commented 1 year ago

Within the profile data you can recover the associated email — if the profile has one — and use that as the alias.

I use this already in a simple url router that sends links to the appropriate chrome profile on open.

Would love to see an interface like:

chrome-cli open https://xkcd.com/ -p 'some-name@some-company.com'