diff options
Diffstat (limited to 'lem')
-rwxr-xr-x | lem | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,8 +1,8 @@ -#!/bin/bash +#!/usr/local/bin/bash NOTES=/home/$USER/Notes TARGET_DIR=$NOTES/homezet -VIM=/usr/bin/vim +VIM=/usr/local/bin/vim if [[ "$1" = "-m" ]]; then msg="${*:2}" @@ -16,6 +16,7 @@ fi STAMP="$(date +%G%m%d%H%M%S)" F_PATH="$TARGET_DIR/$STAMP-$msg.md" -echo $F_PATH + +printf "# %s\n\n", "$msg" >> "$F_PATH" $VIM "$F_PATH" |