summaryrefslogtreecommitdiff
path: root/bin/journal
blob: 3171a5e7db25b07818a13b8f3d6394bda4df50c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

j=~/.journal

t="$(mktemp)"
"$EDITOR" "$t"


echo >>"$j"
date +'%Y-%m-%d %H:%M' >>"$j"
printf '%s\n' '----------------' >>"$j"
cat "$t" | sed -e 's/^/\t/' >>"$j"