summaryrefslogtreecommitdiff
path: root/wipe_settings.sh
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-11 10:42:26 -0700
committerLuke <luke@lukesmith.xyz>2018-02-11 10:42:26 -0700
commit600a53dbdc0a4bc74b7fd485e14eef036272d644 (patch)
treef24f7f0a56f53acb246295977be6ef3ff84d8641 /wipe_settings.sh
parent0524f255484c325a25b9a3f2cd312c3697b2e4ef (diff)
settings wiper, accounts bug fixed?
Diffstat (limited to 'wipe_settings.sh')
-rwxr-xr-xwipe_settings.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/wipe_settings.sh b/wipe_settings.sh
new file mode 100755
index 0000000..bfdd8b8
--- /dev/null
+++ b/wipe_settings.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+muttdir="$HOME/.config/mutt/"
+
+wipe () { rm $HOME/.offlineimaprc
+rm -rf "$muttdir"/accounts
+rm -f "$muttdir"credentials/*gpg
+rm "$muttdir"personal.muttrc ;}
+
+(dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) || clear && exit
+
+clear