summaryrefslogtreecommitdiff
path: root/wipe_settings.sh
blob: bfdd8b874b34b027a8e032c08522d2dd27d3218c (plain)
1
2
3
4
5
6
7
8
9
10
11
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