瀏覽代碼

mw sync can take arg, otherwise sync all

tags/v3.1
Luke Smith 4 年之前
父節點
當前提交
3821323572
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4C50B54A911F6252
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      bin/mw

+ 2
- 2
bin/mw 查看文件

@@ -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


Loading…
取消
儲存