diff options
| author | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-01-23 12:48:30 +0100 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-01-23 12:48:30 +0100 |
| commit | 97f968a30e7dc28f6d99bfbaae8a4aeefb6ad525 (patch) | |
| tree | 5a250224ab69a04f05be2f757af86bfee9a7fec0 /reset-gpt | |
| parent | a00f92fdb6062af011d98ba8af6ddf0713fa7b3e (diff) | |
| download | bin-97f968a30e7dc28f6d99bfbaae8a4aeefb6ad525.tar.gz bin-97f968a30e7dc28f6d99bfbaae8a4aeefb6ad525.zip | |
added all of my scripts
Diffstat (limited to 'reset-gpt')
| -rwxr-xr-x | reset-gpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/reset-gpt b/reset-gpt new file mode 100755 index 0000000..69131a7 --- /dev/null +++ b/reset-gpt @@ -0,0 +1,17 @@ +#!/bin/bash + +# Close ChatGPT tabs only +pkill -f "firefox.*chatgpt.com" 2>/dev/null + +PROFILE=$(ls -d ~/.mozilla/firefox/*.default*) + +# Delete all ChatGPT site storage +rm -rf "$PROFILE/storage/default/https+++chatgpt.com" +rm -rf "$PROFILE/storage/default/https+++chat.openai.com" + +# Clear Firefox HTTP cache +rm -rf "$PROFILE/cache2/*" + +# Relaunch Firefox +nohup firefox-esr >/dev/null 2>&1 & + |
