#!/bin/sh NUL='>/dev/null 2>&1' offlineimap -o -u ttyui cmd() { echo -n 'apt-get update && apt-get dist-upgrade && ' echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean' } sudo sh -c "$(cmd)" tlmgr update --self && tlmgr update --all khal calendar $NUL khard $NUL pass git pull origin master if ! tmux list-sessions then tmuxmail fi