aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-09 12:35:11 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-09 12:35:11 +1300
commit8596a223d1c99a71c2345a11ade542795aa18cc9 (patch)
tree0ca376797e9c4e79242c33c67aab24adfcbe394b /bin
parentBreak long line in loc(1df) (diff)
downloaddotfiles-8596a223d1c99a71c2345a11ade542795aa18cc9.tar.gz
dotfiles-8596a223d1c99a71c2345a11ade542795aa18cc9.zip
Add clog(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/clog7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/clog b/bin/clog
new file mode 100755
index 00000000..d52ab4c5
--- /dev/null
+++ b/bin/clog
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Record a timestamped message to a logfile, defaulting to ~/.clog
+{
+ date
+ cat -
+ printf '%s\n' --
+} >>"${CLOG:-"$HOME"/.clog}"