diff options
author | Joe <bousset.rudy@gmail.com> | 2023-02-18 04:03:48 +0100 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2023-02-18 04:03:48 +0100 |
commit | fb977ebed3c52226c1f0192583e76505b20fdc78 (patch) | |
tree | 6cbc2f210a198d0ee6d9d1880164332ce93fbdbe /.local/bin/idea | |
parent | up (diff) | |
download | dotfiles-bsd-fb977ebed3c52226c1f0192583e76505b20fdc78.tar.gz dotfiles-bsd-fb977ebed3c52226c1f0192583e76505b20fdc78.tar.bz2 dotfiles-bsd-fb977ebed3c52226c1f0192583e76505b20fdc78.tar.xz dotfiles-bsd-fb977ebed3c52226c1f0192583e76505b20fdc78.tar.zst dotfiles-bsd-fb977ebed3c52226c1f0192583e76505b20fdc78.zip |
up
Diffstat (limited to '.local/bin/idea')
-rwxr-xr-x | .local/bin/idea | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.local/bin/idea b/.local/bin/idea index 7e12a56..0c212dd 100755 --- a/.local/bin/idea +++ b/.local/bin/idea @@ -14,13 +14,12 @@ html_fmt='\t\t\t\t<h3>'"${date}"'<\/h3>\ \t\t\t\t\t'"${thought}"'\ \t\t\t\t<\/p>\ ' -gmi_fmt='\ -\ -## '"${date}"'\ -\ -'"${thought}" +case $(hostname -s) in + mother|po-rbo) sed="sed -i" ;; + fbsd-tp) sed="sed -i ''" ;; +esac -sed -i '' -e '/<!-- thoughts here -->$/{n;s/^/'"${html_fmt}"'/;}' \ +$sed -e '/<!-- thoughts here -->$/{n;s/^/'"${html_fmt}"'/;}' \ "$HOME"/dev/web/joe-www/thoughts.html git -C "$HOME"/dev/web/joe-www add -u git -C "$HOME"/dev/web/joe-www commit -m "Thought: ${date}" |