Last active
March 5, 2019 17:37
-
-
Save unknwon/56217a957a731e6bc829fad3fe1ae396 to your computer and use it in GitHub Desktop.
[Single Page Chrome Window] #Archive
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 | |
URL=$1 | |
if [ -z "$URL" ]; then | |
echo "Please enter an URL: " | |
read URL | |
fi | |
if [[ $URL != http://* && $URL != https://* ]]; then | |
URL="http://$URL" | |
fi | |
open -n -a 'Google Chrome' --args "--app=$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment