mutt-wizard

A wizard that autocreates an offline email setup for (neo)mutt with isync/mbsync
Log | Files | Refs | README | LICENSE

commit 9fbb5e6832d9f287eeba8632b3b56aed83b68208
parent da764165f5839364447a52556ed7d15d4c70429e
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 21 Apr 2019 22:21:57 -0400

this might actually werk

Diffstat:
MREADME.md | 6++++--
Mbin/mw | 6++----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -19,11 +19,13 @@ Specifically, this wizard: ## Install and Use ``` -git clone https://github.com/LukeSmithxyz/mutt-wizard ~/.config/mutt -cd ~/.config/mutt +git clone https://github.com/LukeSmithxyz/mutt-wizard +cd mutt-wizard sudo make install ``` +The mutt-wizard is run with the command `mw`. It also installs the `mailsync` command. + Install these required programs: - `neomutt` - the email client. diff --git a/bin/mw b/bin/mw @@ -265,15 +265,13 @@ asktype() { while : ; do *) echo "Write out either yes or no completely. Try again or press ctrl-c to quit." ;; esac; done ;} -init() { \ - echo "Initializing a mutt-wizard configuration..." - [ -f "$muttdir/muttrc" ] && echo "There is already a preexisting config. Purge the previous to reinit." && return 1 +init() { echo "Initializing a mutt-wizard configuration..." + [ -f "$accdir" ] && echo "There is already a preexisting config. Purge the previous to reinit." && return 1 mkdir -p "$muttdir" "$accdir" cp -v "$muttshare/mailcap" "$muttdir" cp -v "$muttshare/muttrc" "$muttdir" } - case "$1" in init) init ;; ls) list ;;