blob: 037f24c7b34e6d9c833b8b72220adb976cfb0cbf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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 -
printf '%s\n' --
} >>"${CLOG:-"$HOME"/.clog}"
|