Skip to content

Instantly share code, notes, and snippets.

@rudylattae
Created November 24, 2012 20:57
Show Gist options
  • Save rudylattae/4141371 to your computer and use it in GitHub Desktop.
Save rudylattae/4141371 to your computer and use it in GitHub Desktop.
polychrome.sh
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 profile_name"
exit 1
fi
PROFILE_NAME="$1"
GOOGLE_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
USER_DIR="/Users/$USER/Library/Application Support/Google/Chrome/${PROFILE_NAME}"
exec "$GOOGLE_CHROME" \
--allow-file-access \
--allow-file-access-from-files \
--enable-udd-profiles \
--user-data-dir="$USER_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment