tpmとは
tpmとはtmuxのためのプラグインマネージャです。
使い方
tmuxをすでに導入している前提で記載します。
インストール
以下のコマンドでインストールします。
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmインストール後.tmux.confの最後に以下を記載してください。
# List of pluginsset -g @plugin 'tmux-plugins/tpm'set -g @plugin 'tmux-plugins/tmux-sensible'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)run '~/.tmux/plugins/tpm/tpm'tmux起動中の場合は以下のコマンドでリロードしてください。
tmux source ~/.tmux.confプラグインのインストール
インストールしたいプラグインを以下の形式で.tmux.confに追記する。
set -g @plugin 'github_username/plugin_name'tmuxを起動中にprefix + I(大文字)でインストール
プラグインのアンインストール
プラグインの記述を消すか、コメントアウトして、tmuxを起動中にprefix + alt + uでアンインストール
以上です。