diff --git a/zsh/config/functions/shortdate b/zsh/config/functions/shortdate new file mode 100755 index 0000000..7cc5620 --- /dev/null +++ b/zsh/config/functions/shortdate @@ -0,0 +1,7 @@ +#!/bin/zsh + +# Formats the date as '23.10.12'. + +function shortdate() { + echo "$(date '+%Y.%m.%d' | cut -c3-)" +}