diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/clog | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,10 @@ #!/bin/sh # Record a timestamped message to a logfile, defaulting to ~/.clog +self=clog +command -v rlwrap >/dev/null 2>&1 && + set -- rlwrap -C "$self" "$@" { date - cat - + "$@" cat - printf '%s\n' -- } >>"${CLOG:-"$HOME"/.clog}" |