Why

I have started using Tmux, on my quest to make me better while working on the command line.

I have always postponed using Tmux because of the different commands I would have to learn and also the akwards key combination.

I now made a fully move to incorporate Tmux in my workflow and got get some nice things about it that I am chunking in this post for my future self sanity.

How to

Here is my final configuration

It is mostly from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ which is a nice and well written article on the topic.

Logging

While doing some researches on the topic, I found this stack-overflow which has great details on the technique used here

https://unix.stackexchange.com/questions/5832/is-there-an-equivalent-of-gnu-screens-log-command-in-tmux

bind-key L pipe-pane "exec cat >>$HOME/'#W-tmux.log'" \; display-message 'Started logging to $PWD/#W-tmux.log'
bind-key l pipe-pane \; display-message 'Ended logging to $PWD/#W-tmux.log'

Copy /paste

I am still trying to get comfortable with copy/paste in Tmux, just like with vi, it hurts :).

I have found a nice article to help with that - but I think I am going to stick to the default way of achieving things (for now).

https://www.rockyourcode.com/copy-and-paste-in-tmux/