summaryrefslogtreecommitdiffstats
path: root/.local/bin/idea
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-04-29 20:51:52 +0200
committerJoe <bousset.rudy@gmail.com>2022-04-29 20:51:52 +0200
commit53aace2c0017289f0eb2c6d944a3edc773d2c6a6 (patch)
tree3339cf6545a95ef94a14ca995b8333d9b69d3d70 /.local/bin/idea
parentupdate (diff)
downloaddotfiles-bsd-53aace2c0017289f0eb2c6d944a3edc773d2c6a6.tar.gz
dotfiles-bsd-53aace2c0017289f0eb2c6d944a3edc773d2c6a6.tar.bz2
dotfiles-bsd-53aace2c0017289f0eb2c6d944a3edc773d2c6a6.tar.xz
dotfiles-bsd-53aace2c0017289f0eb2c6d944a3edc773d2c6a6.tar.zst
dotfiles-bsd-53aace2c0017289f0eb2c6d944a3edc773d2c6a6.zip
idea
Diffstat (limited to '')
-rwxr-xr-x.local/bin/idea16
1 files changed, 8 insertions, 8 deletions
diff --git a/.local/bin/idea b/.local/bin/idea
index e2853a1..a8acfae 100755
--- a/.local/bin/idea
+++ b/.local/bin/idea
@@ -1,9 +1,9 @@
#!/bin/sh -e
if [ -z "$1" ]; then
- read -r thought
+ thought=$(cat | xargs)
elif [ -f "$1" ]; then
- thought=$(cat "$1")
+ thought=$(cat "$1" | xargs)
else
thought="$*"
fi
@@ -22,14 +22,14 @@ gmi_fmt='\
sed -i '' -e '/<!-- thoughts here -->$/{n;s/^/'"${html_fmt}"'/;}' \
"$HOME"/dev/web/jozanofastora.xyz/thoughts.html
-git -C "$HOME"/dev/web/jozanofastora.xyz add -u
-git -C "$HOME"/dev/web/jozanofastora.xyz commit -m "Thought: ${date}"
-git -C "$HOME"/dev/web/jozanofastora.xyz push
+git -C "$HOME"/dev/web/jozanofastora-www add -u
+git -C "$HOME"/dev/web/jozanofastora-www commit -m "Thought: ${date}"
+git -C "$HOME"/dev/web/jozanofastora-www push
sed -i '' -e '15i '"${gmi_fmt}" \
"$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
+git -C "$HOME"/dev/web/jozanofastora-gemini add -u
+git -C "$HOME"/dev/web/jozanofastora-gemini commit -m "Thought: ${date}"
+git -C "$HOME"/dev/web/jozanofastora-gemini push
vps