Skip to content

Instantly share code, notes, and snippets.

@gebi
Created November 8, 2016 16:54
Show Gist options
  • 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