You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
380 B

  1. #!/bin/bash
  2. muttdir="$HOME/.config/mutt/"
  3. wipe () { rm $HOME/.offlineimaprc
  4. rm -rf "$muttdir"/accounts
  5. rm -f "$muttdir"credentials/*gpg
  6. rm "$muttdir"personal.muttrc ;}
  7. (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
  8. clear