tmux-plugins / tmux-continuum

Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
MIT License
3.23k stars 149 forks source link

tmux-continuum showing as off #24

Open alathon opened 8 years ago

alathon commented 8 years ago

I've installed tmux-ressurect and tmux-continuum via plugins. In my .tmux.conf I have the following:

set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-ressurect'

set -g @continuum-restore 'on' set -g status-right 'Continuum: #{continuum_status}'

set -g @resurrect-strategy-vim 'session' set -g @resurrect-capture-pane-contents 'on'

Normal ressurection works via explicit keybindings for it. However, continuum seems to never turn on - After I added the status to the tmux line, I can see that its only ever set to 'Off' :/ Any hints?

I'm running Linux Mint, and Tmux v. 2.2.

raghavendra-talur commented 8 years ago

I faced the same issue. The docs don't talk about it but auto save is off by default. Once I add set -g @continuum-save-interval '10' in my tmux.conf and reload config, I am able to see the status as 10.

alathon commented 8 years ago

Thanks! That seems to have done it. This should probably be added to the readme =)

danielkrajnik commented 3 years ago

That's really confusing. Please add it to readme

bruno- commented 3 years ago

@continuum-save-interval is (or should be) set to 15 by default

https://github.com/tmux-plugins/tmux-continuum/blob/6e58336c288958a3b1ff7773fb945770126db16e/scripts/variables.sh#L7-L8

If it's not set, then that's a bug that should be fixed. Can anyone provide repro steps?

danielkrajnik commented 3 years ago

1.default, fresh installation of tmux

  1. add this to .tmux.conf:

`set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible'

set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on'

set -g status-right 'Continuum: #{continuum_status}'

run '~/.tmux/plugins/tpm/tpm' `

  1. reload plugins (prefix, shift+I)
  2. source tmux.conf

without adding set -g @continuum-save-interval '1' status will be off and for me also not working (but maybe would have worked after 15 minutes, haven't checked that)

ShelpAm commented 3 weeks ago

This is confusing. Is anyone fixing this?