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"
|
notes_dir="${HOME}/notes/Journal"
|
||||||
|
scripts_dir="${HOME}/Projects/scripts"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Load config & functions
|
# Load config & functions
|
||||||
. ${HOME}/ayo.conf
|
. ${HOME}/ayo.conf
|
||||||
. functions.sh
|
. ${scripts_dir}/functions.sh
|
||||||
|
|
||||||
command=$1
|
command=$1
|
||||||
journal_dir="${notes_dir}/Journal"
|
journal_dir="${notes_dir}/Journal"
|
||||||
|
@ -19,7 +19,7 @@ elif [ "$1" = "append" ]; then
|
||||||
{
|
{
|
||||||
read -p "Add thought: " thought
|
read -p "Add thought: " thought
|
||||||
time=$(date +'%r')
|
time=$(date +'%r')
|
||||||
echo $'\n'\[$time\] $thought$'\n' >> "$full_path"
|
echo $'\n'\> \[$time\]$'\n'\> $thought$'\n' >> "$full_path"
|
||||||
notesSync
|
notesSync
|
||||||
} || {
|
} || {
|
||||||
echo ">>> Append failed"
|
echo ">>> Append failed"
|
||||||
|
|
2
notes.sh
2
notes.sh
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# Load config
|
# Load config
|
||||||
. ${HOME}/ayo.conf
|
. ${HOME}/ayo.conf
|
||||||
. functions.sh
|
. ${scripts_dir}/functions.sh
|
||||||
|
|
||||||
# TODO: write log for echoes with >>>
|
# TODO: write log for echoes with >>>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue