refactor: various changes to sync behavior

This commit is contained in:
Ayo Ayco 2025-06-23 15:12:30 +02:00
parent 5fcf06c7aa
commit f90d60f30d
3 changed files with 6 additions and 4 deletions

6
ayo.sh
View file

@ -6,6 +6,12 @@ case $1 in
ja) # journal append
. ${HOME}/Projects/scripts/journal.sh append $2 $3 $4 $5 $6 $7 $8 $9
;;
jt) # journal using typora
. ${HOME}/Projects/scripts/journal.sh -t $2 $3 $4 $5 $6 $7 $8 $9
;;
nt) # Notes using typora
. ${HOME}/Projects/scripts/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9
;;
gs) # git status
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
;;

View file

@ -13,8 +13,6 @@ getopts "t" typora; #check if -t flag is given
file_name=$(date +'%m.%d.%Y').md
full_path="${journal_dir}/${month_dir}/${file_name}"
notesSync
if [ "$1" = "append" ]; then
{
read -p "Add thought: " thought

View file

@ -12,8 +12,6 @@ command=$1
getopts "t" typora; #check if -t flag is given
notesSync
{
read -p "Enter file name: " title
file_name=$title.md