summaryrefslogtreecommitdiff
path: root/bin/journal
diff options
context:
space:
mode:
Diffstat (limited to 'bin/journal')
-rwxr-xr-xbin/journal12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/journal b/bin/journal
new file mode 100755
index 0000000..3171a5e
--- /dev/null
+++ b/bin/journal
@@ -0,0 +1,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"