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.

9 lines
277 B

  1. #!/bin/sh
  2. # Return a path for a new vimwiki log entry.
  3. # Unfortunately has a side effect, which it probably shouldn't for a
  4. # `fragment-` script.
  5. mkdir -p "$HOME/notes/vimwiki/log/$(date '+%Y/%m')"
  6. printf '%s%s' "$HOME" "$(date '+/notes/vimwiki/log/%Y/%m/%d-%H%M-%S.wiki')"