From 1f237d1ed24279b595489d02a37d4ef61a71cd8b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 3 Apr 2022 15:27:49 +0100 Subject: basic lem script and revised batnote to include two new zet dirs --- lem | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lem') diff --git a/lem b/lem index 1fb332b..5c4fb9f 100755 --- a/lem +++ b/lem @@ -1,11 +1,21 @@ #!/bin/bash NOTES=/home/$USER/Notes -MOD_NOTES=$NOTES/mod +TARGET_DIR=$NOTES/homezet VIM=/usr/bin/vim +if [[ "$1" = "-m" ]]; then + msg="${*:2}" + TARGET_DIR=$NOTES/modzet + shift +else + msg="$@" + shift +fi + + STAMP="$(date +%G%m%d%H%M%S)" -F_PATH="$MOD_NOTES/$STAMP - $@.md" +F_PATH="$TARGET_DIR/$STAMP-$msg.md" echo $F_PATH $VIM "$F_PATH" -- cgit v1.2.3