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 >>>