Plugin Directory¶
tpack resolves the plugin directory in this order — the first match wins:
- The
@tpack-plugin-pathtmux option - The
TPACK_PLUGIN_PATHtmux environment variable - The
TMUX_PLUGIN_MANAGER_PATHtmux environment variable (TPM compatibility) - An existing plugin directory:
$XDG_CONFIG_HOME/tmux/plugins/or~/.tmux/plugins/, preferring the one next to yourtmux.conf $XDG_DATA_HOME/tmux/plugins/(usually~/.local/share/tmux/plugins/)
Existing installs keep working unchanged: if you already have plugins in
~/.tmux/plugins/ or $XDG_CONFIG_HOME/tmux/plugins/, step 4 finds them and
nothing moves. The XDG data directory default (step 5) only applies to fresh
installs with no plugin directory on disk, following the
XDG Base Directory Specification —
installed plugins are data, so they belong under $XDG_DATA_HOME rather than
in your config directory (and out of your dotfiles repo).
Overriding the path¶
Set the @tpack-plugin-path option in your tmux.conf:
~, $HOME, and $XDG_CONFIG_HOME are expanded.
For TPM compatibility, the TMUX_PLUGIN_MANAGER_PATH and TPACK_PLUGIN_PATH
environment variables still work:
@tpack-plugin-path takes priority over both environment variables.
Invalid paths¶
- Plugin paths and HOME/XDG roots must be absolute.
- Filesystem roots and paths resolving to a filesystem root are rejected.
- Invalid explicit values fail the command and do not fall through precedence.
- Existing valid precedence remains unchanged.
When changing the path with a git-clone install, update the initialization line at the bottom of your config to match:
Warning
Keep the run line at the very bottom of tmux.conf. tpack must load after all plugin declarations.