feat(journal): appened thought is in a quote block
This commit is contained in:
parent
2a5c07577c
commit
59f1b57091
3 changed files with 4 additions and 3 deletions
|
@ -1 +1,2 @@
|
|||
notes_dir="${HOME}/notes/Journal"
|
||||
scripts_dir="${HOME}/Projects/scripts"
|
||||
|
|
|
@ -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"
|
||||
|
|
2
notes.sh
2
notes.sh
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Load config
|
||||
. ${HOME}/ayo.conf
|
||||
. functions.sh
|
||||
. ${scripts_dir}/functions.sh
|
||||
|
||||
# TODO: write log for echoes with >>>
|
||||
|
||||
|
|
Loading…
Reference in a new issue