From d31bfdfafb91600ce8a5336e3890d5dea327e2fa Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 23 Jun 2025 13:06:23 +0200 Subject: [PATCH] chore(docs): list subcommands and default behavior for git script --- README.md | 5 ++++- functions.sh | 2 ++ git.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8b9001..a82380b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,10 @@ $ vim ~/ayo.conf 1. journal - creates a new journal entry if it doesn’t exist yet; opens on editor 1. append - append one thought at the end of the day's entry 1. notes - notes management -1. git - git tools +1. git (g) - git tools; default behavior is gs, gc, then gp ... + 1. stat (gs) - git status + 2. commit (gc) - git commit (reads for message, accepts args as list of files to commit) + 3. push (gp) - git push ## Features 1. Autosync for notes & journal via git diff --git a/functions.sh b/functions.sh index b83a55a..de6ecd9 100644 --- a/functions.sh +++ b/functions.sh @@ -1,3 +1,5 @@ +# NOTE: config should be loaded by the script using this shared functions.sh + # Sync notes via git notesSync() { { diff --git a/git.sh b/git.sh index 0a9087d..0d7b715 100755 --- a/git.sh +++ b/git.sh @@ -47,6 +47,6 @@ elif [ "$1" = "push" ]; then gitPush else gitStatus - gitCommit + gitCommit $2 $3 $4 $5 $6 $7 $8 $9 gitPush fi