diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-08-27 16:54:06 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-08-27 16:54:06 -0400 |
commit | 38213235727efb7e70a67d8bf3d92a13a2c479eb (patch) | |
tree | b9874752f63096328b09295ae032f486bda7fd59 /bin/mw | |
parent | aece24c7ddb058589273e5e0b7cc89b70d6a54e1 (diff) |
mw sync can take arg, otherwise sync all
Diffstat (limited to 'bin/mw')
-rwxr-xr-x | bin/mw | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -289,7 +289,7 @@ purge() { confirm "delete all account data" || exit sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu } -syncwrapper() { mbsync -a & +syncwrapper() { mbsync "${1:--a}" & ( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null wait ( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null @@ -322,7 +322,7 @@ case "$1" in add) asktype && askinfo && tryconnect && finalize || delete ;; pass) pick "change the password of" && getpass ;; delete) pick delete && confirm "delete the \`$title\` profile" && delete ;; - sync) syncwrapper ;; + sync) syncwrapper $2 ;; purge) purge ;; *) cat << EOF mw: mutt-wizard, auto-configure email accounts for mutt |