From a92b451f9804e7a0c763b87d62ac2a9eabb72c6f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 10 Jan 2022 15:32:07 +0100 Subject: new script for Gemini --- .local/bin/idea | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .local/bin/idea (limited to '.local/bin/idea') 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 -- cgit v1.2.3