Skip to content

Instantly share code, notes, and snippets.

@unknwon
Last active March 5, 2019 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unknwon/56217a957a731e6bc829fad3fe1ae396 to your computer and use it in GitHub Desktop.
Save unknwon/56217a957a731e6bc829fad3fe1ae396 to your computer and use it in GitHub Desktop.
[Single Page Chrome Window] #Archive
#! /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