p:: CLI
- GitHub - tmux/tmux: tmux source code
- tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
- https://github.com/adithya321/dotfiles/blob/main/.tmux.conf
Tmux Plugin Manager
- GitHub - tmux-plugins/tpm: Tmux Plugin Manager
- Installs and loads
tmux
plugins. - GitHub - tmux-plugins/list: A list of tmux plugins.
Installation
Put this at the bottom of ~/.tmux.conf
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Reload TMUX environment so TPM is sourced:
Installing plugins
- Add new plugin to
~/.tmux.conf
withset -g @plugin '...'
- Press
prefix
+ I (capital i, as in Install) to fetch the plugin.
You’re good to go! The plugin was cloned to ~/.tmux/plugins/
dir and sourced.
Tmux sensible
- GitHub - tmux-plugins/tmux-sensible: basic tmux settings everyone can agree on
- A set of tmux options that should be acceptable to everyone.
Tmux Resurrect
- GitHub - tmux-plugins/tmux-resurrect: Persists tmux environment across system restarts.
- Restore
tmux
environment after system restart.
Key bindings
prefix + Ctrl-s
- saveprefix + Ctrl-r
- restore