LoginSignup
23
22

More than 5 years have passed since last update.

tmuxで再起動してもセッションリストア

Posted at

大切に育てた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

プラグインマネージャー便利。

手動で保存とか絶対忘れるに決まってる。

23
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
22