tmux: copy and paste with the mouse

tmux is a terminal multiplexer. It works across all major Linux and Unix-like operating systems and provides a multitask experience in the command line.

One of the major frustrations I had over the years using it was that it didn't seem to be capable of mouse selection. This is a very common operation to do within a terminal emulator, especially when googling for errors originated from the output of a program.

This week I learned a very simple trick [1]: you just have to hold the SHIFT key while selecting a text region. Boom, that's it. You're welcome.


[1] This has been tested on tmux 2.3.


Comments powered by Disqus