Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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