#!/bin/sh NUL='>/dev/null 2>&1' cmd() { echo -n 'apt-get update && apt-get dist-upgrade -y && ' echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean' } sudo sh -c "$(cmd)" 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"