在使用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