Created
August 5, 2015 19:38
-
-
Save jt2k/cb8ae7ad93e07fcacb54 to your computer and use it in GitHub Desktop.
Open website in Chrome app mode
This file contains 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 | |
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