#!/bin/zsh case `date +"%a"` in Sat|Sun) offlineimap -a private ;; *) if [[ -f ~/.holiday ]]; then offlineimap -a private else offlineimap fi ;; esac $HOME/.local/bin/offlineimap-notification