Skip to content

Instantly share code, notes, and snippets.

@webevt
Last active December 23, 2015 16:09
Show Gist options
  • Save webevt/6659823 to your computer and use it in GitHub Desktop.
Save webevt/6659823 to your computer and use it in GitHub Desktop.
Run a one-time standalone Google Chrome instance: creates a temporary user-directory in /tmp/ and run Google Chrome from it. User data directory will be deleted when the Chrome is closed.
chromeDataDir="/tmp/"`tr -dc \"[:alpha:]\" < /dev/urandom | head -c 8` && echo "Started Google Chrome from "$chromeDataDir && google-chrome --user-data-dir=$chromeDataDir && rm -r $chromeDataDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment