refactor: various changes to sync behavior
This commit is contained in:
parent
5fcf06c7aa
commit
f90d60f30d
3 changed files with 6 additions and 4 deletions
6
ayo.sh
6
ayo.sh
|
@ -6,6 +6,12 @@ case $1 in
|
||||||
ja) # journal append
|
ja) # journal append
|
||||||
. ${HOME}/Projects/scripts/journal.sh append $2 $3 $4 $5 $6 $7 $8 $9
|
. ${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
|
gs) # git status
|
||||||
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -13,8 +13,6 @@ getopts "t" typora; #check if -t flag is given
|
||||||
file_name=$(date +'%m.%d.%Y').md
|
file_name=$(date +'%m.%d.%Y').md
|
||||||
full_path="${journal_dir}/${month_dir}/${file_name}"
|
full_path="${journal_dir}/${month_dir}/${file_name}"
|
||||||
|
|
||||||
notesSync
|
|
||||||
|
|
||||||
if [ "$1" = "append" ]; then
|
if [ "$1" = "append" ]; then
|
||||||
{
|
{
|
||||||
read -p "Add thought: " thought
|
read -p "Add thought: " thought
|
||||||
|
|
2
notes.sh
2
notes.sh
|
@ -12,8 +12,6 @@ command=$1
|
||||||
|
|
||||||
getopts "t" typora; #check if -t flag is given
|
getopts "t" typora; #check if -t flag is given
|
||||||
|
|
||||||
notesSync
|
|
||||||
|
|
||||||
{
|
{
|
||||||
read -p "Enter file name: " title
|
read -p "Enter file name: " title
|
||||||
file_name=$title.md
|
file_name=$title.md
|
||||||
|
|
Loading…
Reference in a new issue