Skip to content

Instantly share code, notes, and snippets.

@jamezpolley
Created July 26, 2011 01:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamezpolley/1105723 to your computer and use it in GitHub Desktop.
Save jamezpolley/1105723 to your computer and use it in GitHub Desktop.
my chrome profile launcher script
#!/bin/bash
dochrome-mac () {
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-udd-profiles --user-data-dir=/Users/$USER/Library/Application\ Support/Google/Chrome$1 2>&1 &
}
dochrome-linux () {
/opt/google/chrome/google-chrome --enable-udd-profiles --user-data-dir=~/.config/google-chrome$1 %U 2>%1 &
}
if [[ $(uname) = "Linux" ]]; then
if [[ ! -z "${1}" ]]; then
profilename="-${1}"
fi
dochrome-linux "${profilename}" > /dev/null
else
dochrome-mac "${1}" > /dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment