blob: 7fdd039808384234e03361dc707c19fd7fabdd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/local/bin/dash -e
[ -z "$1" ] && echo 'Thought needed' && exit 1
nl='
'
date=$(date)
sed -i '' -e '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
|