Created
March 18, 2012 05:12
-
-
Save hepwori/2069085 to your computer and use it in GitHub Desktop.
Make a Chrome instance
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/bash | |
mkdir -p "/Users/$USER/Applications/Google Chrome ($1).app/Contents/MacOS" | |
cat > "/Users/$USER/Applications/Google Chrome ($1).app/Contents/MacOS/Google Chrome ($1)" <<EOF | |
#!/bin/bash | |
exec -a "Google Chrome ($1)" "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \ | |
--enable-udd-profiles \ | |
--user-data-dir="/Users/$USER/Library/Application Support/Google/Chrome ($1)" & | |
EOF | |
chmod +x "/Users/$USER/Applications/Google Chrome ($1).app/Contents/MacOS/Google Chrome ($1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment