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