Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
329 B

#!/bin/bash
# Output a vimwiki log page template for the current time
# (See fragment-vimwiki-diary for an approach to using filename as a date
# input.)
datestamp="$(date --rfc-3339=ns)"
printf '%%date %s\n%%title\n\n' "$datestamp"
# If we have input, drop it into the template:
if [ ! -z "$1" ]; then
printf "%s" "$1"
fi