many updates
[dotfiles.git] / shell / .local / bin / update
1 #!/bin/sh
2 NUL=">/dev/null 2>&1"
3
4 offlineimap -o -u ttyui
5 vdirsyncer sync --max-workers=1
6
7 cmd() {
8 echo -n 'apt-get update && apt-get dist-upgrade && '
9 echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean'
10 }
11
12 sudo sh -c "$(cmd)"
13 tlmgr update --self && tlmgr update --all
14 eval "khal calendar $NUL"
15 eval "khard $NUL"
16 pass git pull origin master
17 if ! tmux list-sessions
18 then
19 tmuxmail
20 fi