Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip restore content cleanup to fix fish shell restore #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JacobHayes
Copy link

Fixes #526

When using fish shell, it seems all windows except the first one for each session will error when restoring pane contents. The error is something along the lines of cat: '/home/monarch/.local/share/tmux/resurrect/restore/pane_contents//pane-0:1.0': No such file or directory (from #526).

My best guess is that fish lazily runs commands or something and each window after the first in tmux doesn't trigger this until opened later.

Either way, instead of cleaning up the pane content files after we've attempted the restore, I leave the files around until the next restore, where I delete them just before we untar the saved contents. This way, the files hang around long enough for the panes to restore them (lazily?), but we still make sure they're reset before the next restore (cleaning up any extra files from the previous restore that may not be in the new one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pane content not restoring properly with fish shell
1 participant