This commit is contained in:
kento2 2026-02-03 23:53:12 +01:00
parent 916ff52966
commit 136aa8bbc7
17 changed files with 227 additions and 191 deletions

View file

@ -6,6 +6,6 @@ tmp="$(mktemp /tmp/journal.XXXXXX)"
d="$(date -I)"
grep "$d" "$JOURNAL" || printf "%s\n" "$d" > "$tmp"
nvi "$tmp"
"${EDITOR:-vi}" "$tmp"
tail "$JOURNAL"
(printf "\n"; cat "$tmp" | tee -a "$JOURNAL") && rm "$tmp"