84cc6f2790682be279f3d8b51e170ac389b34383
[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 sh -c "tlmgr update --self && tlmgr update --all && offlineimap -o -u ttyui && khal $NUL && khard $NUL && pass git pull origin master"