#!/bin/zsh # Formats the date as '23.10.12'. function shortdate() { echo "$(date '+%Y.%m.%d' | cut -c3-)" }