Category Archives: tmux

The terminal multiplexer tmux is a very useful and versatile tool. One thing that it apparently can’t do, however, is to automatically log a session to a log file. Such a feature can be very useful for interactive workloads. Sidenote: tmux also has a plugin manager and there are logging plugins available, but they don’t do exactly what I want. The manual way Logging all inputs/outputs can be done with a simple command: Manually executing this command at the creation of a pane, e.g. the start of a new session is possible but let’s be honest: I will forget it the next day already. So, an automatic method is needed. How it should work but doesn’t Tmux has hooks that trigger actions when certain events happen. The after-new-pane or after-new-session hooks would be ideal to execute the logging command whenever a new session or pane is opened. Adding the hook…

Read more

1/1