summaryrefslogtreecommitdiffstats
path: root/.local/bin/idea
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-01-10 15:32:07 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-01-10 15:32:07 +0100
commita92b451f9804e7a0c763b87d62ac2a9eabb72c6f (patch)
treebd100b8e1b52c6a10860bebfeebd16004cbbff3a /.local/bin/idea
parentupdate (diff)
downloaddotfiles-bsd-a92b451f9804e7a0c763b87d62ac2a9eabb72c6f.tar.gz
dotfiles-bsd-a92b451f9804e7a0c763b87d62ac2a9eabb72c6f.tar.bz2
dotfiles-bsd-a92b451f9804e7a0c763b87d62ac2a9eabb72c6f.tar.xz
dotfiles-bsd-a92b451f9804e7a0c763b87d62ac2a9eabb72c6f.tar.zst
dotfiles-bsd-a92b451f9804e7a0c763b87d62ac2a9eabb72c6f.zip
new script for Gemini
Diffstat (limited to '.local/bin/idea')
-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