Tmux Plugin Manager (tpm)

Tmux Plugin Manager (tpm) 是用来安装和加载 tmux 插件的插件...

Install


Download

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Config

vi ~/.tmux.conf 在文件底部追加以下内容:

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Reload

tmux source ~/.tmux.conf

Usage


Add new plugin

Add new plugin to ~/.tmux.conf with set -g @plugin '...'
输入 prefix + I 来执行安装

Uninstalling plugins

  • Remove (or comment out) plugin line from the list (~/.tmux.conf).
  • Press prefix + alt + u (lowercase u as in uninstall) to remove the plugin.

All the plugins 被安装到 ~/.tmux/plugins/ , 所以 alternatively 你可以找到 plugin 对应目录并移除它.

一些不错的 plugins


tmux-resurrect
...

Ref


tmux-plugins/tpm: Tmux Plugin Manager