#!/usr/bin/env bash POSTDATE="$(date '+%Y-%m-%d %H:%M %:::z')\n\n" $EDITOR /tmp/gemlog-post.txt && sed -i "2s\`^.*$\`\n## $POSTDATE$(cat /tmp/gemlog-post.txt)\n\n-----\n\`" "$HOME/docs/src/gmi/tinylog.gmi" cd "$HOME"/docs/src/gmi/; git diff