add mutt-multi-account-setup
[dotfiles.git] / shell / .local / bin / update
index c73968f..0321d45 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
-NUL='>/dev/null 2>&1'
+NUL=">/dev/null 2>&1"
+
+vdirsyncer sync
 
 cmd() {
        echo -n 'apt-get update && apt-get dist-upgrade && '
@@ -7,4 +9,11 @@ cmd() {
 }
 
 sudo sh -c "$(cmd)"
-sh -c "tlmgr update --all && offlineimap -o -u ttyui && khal $NUL && khard $NUL && pass git pull origin master"
+tlmgr update --self && tlmgr update --all
+eval "khal calendar $NUL"
+eval "khard $NUL"
+pass git pull origin master
+if ! tmux list-sessions
+then
+       tmuxmail
+fi