Skip to content

Instantly share code, notes, and snippets.

@pastcompute
Created January 20, 2016 10:25
Show Gist options
  • Save pastcompute/f2931afc8d35670993f1 to your computer and use it in GitHub Desktop.
Save pastcompute/f2931afc8d35670993f1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# --enable-udd-profiles
dochrome-linux () {
google-chrome --user-data-dir=$HOME/.config/google-chrome$1 "${@}" 2>&1 &
}
if [ ! -z "${1}" -a "${1#http}" == "$1" ]; then
profilename="-${1}"
shift
dochrome-linux "${profilename}" "${@}"> /dev/null
else
google-chrome
fi
# Example: chrome local http://localhost:9980
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment