mutt-wizard/wipe_settings.sh
2018-02-11 10:42:26 -07:00

13 lines
380 B
Bash
Executable File

#!/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