From 600a53dbdc0a4bc74b7fd485e14eef036272d644 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 11 Feb 2018 10:42:26 -0700 Subject: settings wiper, accounts bug fixed? --- wipe_settings.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 wipe_settings.sh (limited to 'wipe_settings.sh') 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 -- cgit v1.2.3