tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.38k stars 422 forks source link

Save file not being created #478

Open WoxWik opened 1 year ago

WoxWik commented 1 year ago

I'm on Tmux 3.2a. There is no save file being created, even when I manually save. The spinner and 'Tmux environment saved!' message still appear. Below is my config:

# Continuum settings which need to go before plugin is loaded
set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'catppuccin/tmux'

# Restores pane contents
set -g @resurrect-capture-pane-contents 'on'

set -g @catppuccin_flavour 'macchiato'

# Supposed to fix colors in tmux
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ',xterm-256color:Tc'

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# Use Alt-arrow keys without prefix key to switch panes
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D

# Shift arrow to switch windows
bind -n S-Left  previous-window
bind -n S-Right next-window

# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm' 
Hologos commented 1 year ago

I am having problems as well. The problem seems to be saving is way slower now. It takes about 10-15 minutes from me to save everything. I don't know why. šŸ¤·ā€ā™‚ļø

oldflag2333333 commented 1 year ago

Same. The message appear, but no file is actually saved.

Update: I found the files under ~/.local/share/tmux/resurrect folder. Maybe it is just a document issue.

djsnipa1 commented 1 year ago

Iā€™m also having this problem!

sturob commented 1 year ago

More details would help anyone looking into this.

  1. What version of tmux are you using?
  2. What OS and OS version?
  3. Where have you looked for the save file?
  4. Are you also experiencing slow saving?
Hologos commented 1 year ago

Hi guys, I downgraded tmux to 3.2a, started it without restoring the session. I saved this very new state (1 session, 1 window, 1 pane), resurrected it, saved it, resurrected it, went to ~/.tmux/resurrect/, change the symlink last to my previous state and resurrected and everything works now. šŸ¤žšŸ™

For those using macOS and want to downgrade using brew, it's became someone harder but here is a guide:

  1. Fork homebrew-core under your own account.
  2. brew extract --version=3.2a tmux <your-github-username>/homebrew-core
  3. brew install tmux@3.2a
  4. brew pin tmux@3.2a