2024-08-29 16:25:23 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
2024-08-29 16:48:11 +00:00
|
|
|
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 "$*"
|
2024-08-29 16:25:23 +00:00
|
|
|
fi
|
2024-08-29 16:48:11 +00:00
|
|
|
|