tpm: tmux插件管理器
嘻嘻发布于2020-11-17
最后更新于2020年11月16日
浏览在使用iterm2或者terminal终端时,都会配合tmux一起使用,如果再tmux插件,你的tmux就会想VIM成为神之工具,极大的提供你的生产效率,tpm是一款很好的tmux插件管理器,有了它你的tmux插件安装管理将会非常方便。
安装
$ 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.conf配置文件
$ tmux source ~/.tmux.conf
安装插件
- 将新插件添加到~/。tmux.conf公司使用set-g@plugin’…’
- 按prefix+I(如Install中的大写字母I)安装插件
awesome插件推荐
- tmux copycat-一个插件,用于在tmux中搜索regex和快速匹配选择
- tmux yank-允许将突出显示的文本复制到系统剪贴板
- tmuxopen-一个快速打开突出显示的文件或url的插件
- tmux continuum-自动恢复和连续保存tmux env