#!/bin/sh NUL=">/dev/null 2>&1" vdirsyncer sync 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 eval "khal calendar $NUL" eval "khard $NUL" pass git pull origin master if ! tmux list-sessions then tmuxmail fi