TPM — Plugin Manager
TPM is the standard plugin manager for tmux. It handles installation, updates, and removal of plugins from your ~/.tmux.conf.
Installation
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Add this line to the bottom of ~/.tmux.conf:
~/.tmux.conf
# Initialize TPM (MUST be last line)
run '~/.tmux/plugins/tpm/tpm'
Reload: tmux source-file ~/.tmux.conf
Usage
Add a plugin to your config:
set -g @plugin 'tmux-plugins/tmux-resurrect'
Then press Ctrl+Space I to install it.
| Action | Shortcut |
|---|---|
| Install plugins | Ctrl+Space I |
| Update all plugins | Ctrl+Space U |
| Remove unlisted plugins | Ctrl+Space Alt+u |
Plugin Directory
All installed plugins live under ~/.tmux/plugins/. You can verify a plugin is installed by checking if its directory exists there.