pentest-distro-builder/filesystem/root/.tmux/plugins/tmux-resurrect/docs/restoring_pane_contents.md
Kaj Forney 4fdc60b6a2 Add autologin and custom tmux config.
Former-commit-id: 9f5a64d372
Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
2018-09-27 17:40:01 -06:00

1,009 B

Restoring pane contents

This plugin enables saving and restoring tmux pane contents.

This feature can be enabled by adding this line to .tmux.conf:

set -g @resurrect-capture-pane-contents 'on'
Known issue

When using this feature, please check the value of default-command tmux option. That can be done with $ tmux show -g default-command.

The value should NOT contain && or || operators. If it does, simplify the option so those operators are removed.

Example:

  • this will cause issues (notice the && and || operators):

      set -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL -l"
    
  • this is ok:

      set -g default-command "reattach-to-user-namespace -l $SHELL"
    

Related bug.

Alternatively, you can let tmux-sensible handle this option in a cross-platform way and you'll have no problems.