summaryrefslogtreecommitdiffstats
path: root/.local/bin/idea
blob: ca3bbb498b39a918d5232a84a8a856d3a2376f4e (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-update