serverapps:tmux:plugin
文書の過去の版を表示しています。
Plugin
TPM(Tmux Plugin Manager)
install
Clone TPM
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Configure
~/.tmux.conf の末尾に以下を追記し、<prefix + I>キーでインストール。
- ~/.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 'github_username/plugin_name#branch' # 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
set -g @tpm_plugins ' \ tmux-plugins/tpm \ tmux-plugins/tmux-sensible \ '
tmux設定の再読み込み
# type this in terminal if tmux is already running $ tmux source ~/.tmux.conf
Tmux Resurrect
tmux-plugins/tmux-resurrectはtmuxのセッションを保存・復元するためのtmux plugin.
Tmux Resurrectプラグインを使用するとtmux環境を保存できるので、PCを再起動しても環境を簡単に復元できるようになる。
set -g @plugin 'tmux-plugins/tmux-resurrect'
prefix + I で plugin 読み込み
Key bindings
prefix + Ctrl-s - save prefix + Ctrl-r - restore
tmux-continuum
tmux-continuumはTmux Resurrectをサポートするプラグインで自動で保存/復元を可能にする。よってこれらはセットで使うのがよさそう。
参考
serverapps/tmux/plugin.1670058949.txt.gz · 最終更新: 2022/12/03 09:15 by hayashi