Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to start multiple Google Chrome processes, each with different config/user data directories.
## Chrome App
app="/Applications/Google Chrome"
## Non-default user data directories
usrDir="/Users/andy/Library/Application Support/Google/Chrome-personal"
qaDir="/Users/andy/Library/Application Support/Google/Chrome-workqa"
## Fire up Chrome
"${app}" ---make-default-browser > /dev/null 2>&1 &
"${app}" --user-data-dir="${qaDir}" > /dev/null 2>&1 &
"${app}" --user-data-dir="${usrDir}" > /dev/null 2>&1 &
## If Chrome is default browser, then the FIRST process fired will be
## where new links/tabs are spawned from other applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.