This commit is contained in:
kento2 2026-01-23 22:18:10 +01:00
parent 4d4c82ed6f
commit 86c95c4253
2 changed files with 19 additions and 0 deletions

11
files/.local/bin/journal Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
JOURNAL="$HOME/nfs/idk"
tmp="$(mktemp /tmp/journal.XXXXXX)"
d="$(date -I)"
grep "$d" "$JOURNAL" || echo "$d" > "$tmp"
nvi "$tmp"
(cat "$tmp" | tee -a "$JOURNAL") && rm "$tmp"
tail "$JOURNAL"