I used to only use tmux to:
- keep a long running shell on a server after I logged out
- share a terminal on a server with collaborators
I would not run tmux directly on my laptop and I would use many terminal instances.
Now my approach to tmux is the following:
- Use tmux like a window manager for terminals
- Run one foot terminal with many tmux windows and panes
- Do not customize tmux on servers; keep using the
Ctrl-bprefix - Customize tmux prefix on my laptop; use the
Ctrl-jprefix so I can nest
I use TPM to mange tmux plugins.
Follow the TPM installation steps.
I use catppuccin/tmux to make tmux look nice.
Add the following to ~/.tmux.conf
set -g @plugin 'catppuccin/tmux'
Source the tmux file
tmux source ~/.tmux.conf
Inside of tmux run the following to ensure the listed @plugin is installed.
prefix + I
My catppuccin settings can be seen in my ~/.tmux.conf.
Here is my ~/.tmux.conf