summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/idea15
1 files changed, 15 insertions, 0 deletions
diff --git a/.local/bin/idea b/.local/bin/idea
new file mode 100755
index 0000000..ca3bbb4
--- /dev/null
+++ b/.local/bin/idea
@@ -0,0 +1,15 @@
+#!/usr/local/bin/dash -e
+
+[ -z "$1" ] && echo 'Thought needed' && exit 1
+
+nl='
+'
+date=$(date)
+
+gsed -i '15i '"\\${nl}\\${nl}"'## '"\\${date}"' '"\\${nl}\\${nl}\\${1}" "$HOME"/dev/web/jozan_gemini/thoughts.gmi
+
+git -C "$HOME"/dev/web/jozan_gemini add -u
+git -C "$HOME"/dev/web/jozan_gemini commit -m "Thought: ${date}"
+git -C "$HOME"/dev/web/jozan_gemini push
+
+vps-update