diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-03 21:30:14 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-03 21:30:14 +1300 |
commit | 98a8deabd1fc9fa524ee84aa9d6438fc46fdccaf (patch) | |
tree | 52c4407fb474a86bc0e5b864863d87188e491f26 /bin | |
parent | Soothe a shellcheck error (diff) | |
download | dotfiles-98a8deabd1fc9fa524ee84aa9d6438fc46fdccaf.tar.gz dotfiles-98a8deabd1fc9fa524ee84aa9d6438fc46fdccaf.zip |
Add rlwrap(1) to clog(1df)
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}" |