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