From 59f1b5709199a78c9cf52a037e9a7e170acde25e Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 23 Jun 2025 13:49:45 +0200 Subject: [PATCH] feat(journal): appened thought is in a quote block --- example.config | 1 + journal.sh | 4 ++-- notes.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example.config b/example.config index 8079af1..09aa4c0 100644 --- a/example.config +++ b/example.config @@ -1 +1,2 @@ notes_dir="${HOME}/notes/Journal" +scripts_dir="${HOME}/Projects/scripts" diff --git a/journal.sh b/journal.sh index 1b5bea1..8cc07f3 100755 --- a/journal.sh +++ b/journal.sh @@ -2,7 +2,7 @@ # Load config & functions . ${HOME}/ayo.conf -. functions.sh +. ${scripts_dir}/functions.sh command=$1 journal_dir="${notes_dir}/Journal" @@ -19,7 +19,7 @@ elif [ "$1" = "append" ]; then { read -p "Add thought: " thought time=$(date +'%r') - echo $'\n'\[$time\] $thought$'\n' >> "$full_path" + echo $'\n'\> \[$time\]$'\n'\> $thought$'\n' >> "$full_path" notesSync } || { echo ">>> Append failed" diff --git a/notes.sh b/notes.sh index 9bdd0ad..6298845 100755 --- a/notes.sh +++ b/notes.sh @@ -4,7 +4,7 @@ # Load config . ${HOME}/ayo.conf -. functions.sh +. ${scripts_dir}/functions.sh # TODO: write log for echoes with >>>