I like to use tools like
asciinema to record and review xterm (i.e.
sh) sessions for typical, general administration reasons, and also, sometimes for comprehensive study/revision; as a learning tool.
I thought of setting the default
$SHELLas a direct path to said tools and/or commands, like:
/bin/asciinema rec -w0.5 term_log.json;
But these tools typically rely on having a default
Also, I feel like re-defining system variables (i.e.
$TERM, etc.) or trying to get it working with config (
*.conf) and dot (
~/.bash_profile) files is gona be riddled with all kinds of holes and potential problems.
However, every time I decide or realize that I want a transcript of a session, it's after the fact, or I'll be halfway through the interesting part already, or some such scenario.
What's the correct, or best practice to set something like this up to simply log everything (preferably
stderr when applicable), etc.) automatically?