Created
January 20, 2016 10:25
-
-
Save pastcompute/f2931afc8d35670993f1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# --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