diff options
Diffstat (limited to 'lem')
-rwxr-xr-x | lem | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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" |