Skip to content

Instantly share code, notes, and snippets.

@jt2k
Created August 5, 2015 19:38
Show Gist options
  • Save jt2k/cb8ae7ad93e07fcacb54 to your computer and use it in GitHub Desktop.
Save jt2k/cb8ae7ad93e07fcacb54 to your computer and use it in GitHub Desktop.
Open website in Chrome app mode
#!/bin/bash
chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
url=$1
regex="^https?://"
if [[ ! $url =~ $regex ]]; then
url="http://$url"
fi
eval "$chrome --app=$url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment