summaryrefslogtreecommitdiffstats
path: root/.local/bin/idea
blob: d79983e82a07e839e7df0a866309d94f71c52372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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