Skip to content

Tmux-resurrect

Persists tmux environment across system restarts.

Install

tpm으로 설치.

set -g @plugin 'tmux-plugins/tmux-resurrect'

키 바인딩 변경

set -g @resurrect-save 'S'
set -g @resurrect-restore 'R'

vim 지원

vim-obsession으로 Session.vim 파일이 있어야 한다.

set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'

Hooks

@resurrect-hook-post-save-layout
Called after all sessions, panes and windows have been saved.
Passed single argument of the state file.
@resurrect-hook-post-save-all
Called at end of save process right before the spinner is turned off.
@resurrect-hook-pre-restore-all
Called before any tmux state is altered.
@resurrect-hook-pre-restore-pane-processes
Called before running processes are restored.

Key bindings

  • prefix + Ctrl-s - save
  • prefix + Ctrl-r - restore

See also

Favorite site