Change update to continuous mail sync
[dotfiles.git] / shell / .local / bin / update
1 #!/bin/sh
2 NUL='>/dev/null 2>&1'
3
4 cmd() {
5 echo -n 'apt-get update && apt-get dist-upgrade -y && '
6 echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean'
7 }
8
9 sudo sh -c "$(cmd)"
10 sh -c "tlmgr update --all --self && offlineimap -o -u ttyui && vdirsyncer sync && khal -c .config/khal/config $NUL && khard $NUL && pass git pull origin master"