大切に育てたsessionを守る。
tmux plugin manager
cloneして
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux.conf の一番下に追記
run-shell '~/.tmux/plugins/tpm/tpm'
tmux-resurrect-auto
自動で保存してくれるやつ。デフォルトでは60分間隔で保存するみたい。
~/.tmux.conf に追記
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-resurrect-auto \
'
試す
設定リロード
tmux source-file ~/.tmux.conf
プラグインインストール
prefix + ctrl + I
手動で保存
prefix + ctrl + s
手動でリストア
prefix + ctrl + r
プラグインマネージャー便利。
手動で保存とか絶対忘れるに決まってる。