diff options
| author | Joe <rrbo@proton.me> | 2023-03-02 14:19:56 +0100 |
|---|---|---|
| committer | Joe <rrbo@proton.me> | 2023-03-02 14:19:56 +0100 |
| commit | e8084679cbbca13a3427898d289a69b1f0a59a8b (patch) | |
| tree | df0b2fb8a32274cfac911632309e57c224ee293c /.local/bin | |
| parent | test (diff) | |
| download | dotfiles-bsd-e8084679cbbca13a3427898d289a69b1f0a59a8b.tar.gz dotfiles-bsd-e8084679cbbca13a3427898d289a69b1f0a59a8b.tar.bz2 dotfiles-bsd-e8084679cbbca13a3427898d289a69b1f0a59a8b.tar.xz dotfiles-bsd-e8084679cbbca13a3427898d289a69b1f0a59a8b.tar.zst dotfiles-bsd-e8084679cbbca13a3427898d289a69b1f0a59a8b.zip | |
idea up
Diffstat (limited to '')
| -rwxr-xr-x | .local/bin/idea | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/.local/bin/idea b/.local/bin/idea index b5fc477..fc0f244 100755 --- a/.local/bin/idea +++ b/.local/bin/idea @@ -8,16 +8,13 @@ else thought="$*" fi -thought_a="$(printf "%s" "${thought}" | sed "s/\n/<br>/")" -exit +thought="$(echo -n "${thought}" | sed '{s/$/<br>\\/;s/^/\\t\\t\\t\\t\\t/;};${s/<br>\\$/\\/;p;x;};1d')" date=$(date '+%a, %d %b %Y %T') html_fmt='\t\t\t\t<h3>'"${date}"'<\/h3>\ \t\t\t\t<p>\ -\t\t\t\t\t'"${thought_a}"'\ +'"${thought}"' \t\t\t\t<\/p>\ ' -echo "%s" "${html_fmt}" -exit case $(hostname -s) in mother|po-rbo) sed="sed -i" ;; fbsd-tp) sed="sed -i ''" ;; |
