Skip to content

Instantly share code, notes, and snippets.

@shackledtodesk
Created March 16, 2016 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shackledtodesk/9fb945f35fa22080a04e to your computer and use it in GitHub Desktop.
Save shackledtodesk/9fb945f35fa22080a04e to your computer and use it in GitHub Desktop.
Script to start multiple Google Chrome processes, each with different config/user data directories.
#!/bin/sh
## Chrome App
app="/Applications/Google Chrome.app/Contents/MacOS/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