add clear on exit

This commit is contained in:
2026-05-18 23:29:25 +02:00
parent aa7072ebe0
commit 4d986e404d
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
# Set Chromium on exit
FILE="$HOME/Library/Application Support/Chromium/Local State"
jq '.browser.enabled_labs_experiments //= [] | .browser.enabled_labs_experiments |= map(select(startswith("clear-data-on-exit") | not)) + ["clear-data-on-exit@1"]' "$FILE" | sponge "$FILE"