Skip to content

Instantly share code, notes, and snippets.

@hepwori
Created March 18, 2012 05:12
Show Gist options
  • Save hepwori/2069085 to your computer and use it in GitHub Desktop.
Save hepwori/2069085 to your computer and use it in GitHub Desktop.
Make a Chrome instance
#!/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