Created
March 16, 2016 22:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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