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