Tmux
Commands/shortcuts that I forget if I don't use them often enough in tmux, followed by some config info for a setting up a new tmux situation.
Things I Forget
Especially when I don't use them often.
Ctrl-b, z
Full-screens the active pane, great for quickly focusing on something
Right click menu
Tmux has a right click menu and that's real the reminder here. Clicking and dragging to re-size windows comes naturally, but right-clicking is always rediscover by mistake. Contains several small useful things for switching around panes.
My Config
The modifications explained briefly:
- Overrides for better color bits. The specifics depend on machine
- Enables the mouse
- Sets h/j/k/l for jumping between panes
- Sets new splits and windows to open in current directory
Depending on the machine these other tweaks may be necessary or helpful.
On MacOS:
set -ag terminal-overrides ",$TERM:RGB"
set -s escape-time 0
On Ubuntu:
set -g default-terminal 'screen-256color'`
Lastly, when I highlight text with my mouse while in a tmux session it places that on my system clipboard. I had assumed I configured this in tmux, but now I'm now not sure since I don't see anything for it.