nnote/mnote

15 lines
491 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [ "${1-}" == "--help" ] || [ "${1-}" == "-h" ]; then
echo "usage: mnote [notename]"
echo " create a monthly note in \$NOTESDIR/year/month"
echo " default \$NOTESDIR is ~/Notes"
echo " yours is ${NOTESDIR-$HOME/Notes}"
echo " default notename is 'monthly'"
echo " multi word notenames accepted without quotes."
else
NOTEBIN="$( dirname -- "$( readlink -f -- "$0"; )"; )"
$NOTEBIN/arbnote monthly "$*"
fi