Skip to content

Instantly share code, notes, and snippets.

@gebi
Created November 8, 2016 16:54
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 gebi/79958f673fe93c56243eaeed16e21102 to your computer and use it in GitHub Desktop.
Save gebi/79958f673fe93c56243eaeed16e21102 to your computer and use it in GitHub Desktop.
Start temporary google chrome instance
#!/bin/bash
tmp_=$(mktemp -d --tmpdir google-chrome-anon-XXXXXXXXXX)
echo "private dir: " $tmp_
trap "{ rm -rf /tmp/$(basename $tmp_); exit 255; }" EXIT
nice -n5 google-chrome --user-data-dir=$tmp_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment