tmux のプラグイン管理にtpmを使ってみた
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
でアンインストール
以上です。