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

Per-server (per-socket) sessions #481

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

Conversation

strogonoff
Copy link

@strogonoff strogonoff commented Jul 7, 2023

BREAKING: may break existing sessions or integrations, since session save location is changed. See how to migrate below.

Tested with macOS Ventura, tmux 3.3a, TPM.

Migration path:

  1. Check and back up the current contents of your resurrect directory (it’s either in ~/.tmux/resurrect or in "${XDG_DATA_HOME:-$HOME/.local/share}"/tmux/resurrect, wherever that is).
  2. While your Tmux session is running, uninstall previous version of resurrect (remove plugin entry from Tmux conf & run TPM uninstall).
  3. Install this version (add in Tmux conf & run TPM install, can use my fork repository while it’s not merged).
  4. Save your session.
  5. Check contents of the resurrect directory you located in step 1. Now they should contain a subdirectory <tmux socket filename>, which is default by default. Save and resurrect commands you run now act on current server (socket path) only.

Migrating back: generally, you can just revert to the old version, and whatever snapshot was in your resurrect directory should work again.

Thanks to @samm81.

BREAKING: will break existing sessions,
since session save location is changed.

Supposed migration path (to be tested):
while Tmux is running, remove previous version of resurrect
(remove from Tmux conf & TPM uninstall), then install this version,
then save your session.
dex6 added a commit to dex6/tmux-resurrect-more that referenced this pull request Jun 7, 2024
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.

1 participant