参考
tmux插件管理器tpm(Tmux Plugin Manager)
安装要求: tmux version 1.9以上,git, bash
- 下载插件管理器
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
- 将一下命令加入~/.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'
- 重载
$ tmux source ~/.tmux.conf
- 安装插件
在配置文件~/.tmux.conf中加入命令set -g @plugin ‘…’。
然后输入,prefix + I
- 卸载插件
注释对应插件安装命令,再输入prefix + alt + u 卸载插件