blob: 0964ce9041ad49de96bef421bbb2d9c2da37f6a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# 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}"
|