Created
April 18, 2019 19:45
-
-
Save vifon/af4d4cf3e73b3f467f4c67daadf7474a to your computer and use it in GitHub Desktop.
Start an absolutely fresh Firefox instance that's self-destruct afterwards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
finish() { | |
rm -rf "$TMP" | |
exit | |
}; trap finish EXIT INT TERM | |
TMP="$(mktemp -d -t prefix.XXXXXX --tmpdir=/tmp)" | |
env HOME="$TMP" firefox -no-remote "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment