tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.42k stars 424 forks source link

After reboot, first split always goes to home directory #354

Closed rcywongaa closed 3 years ago

rcywongaa commented 4 years ago

My .tmux.conf

set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
set -g @resurrect-strategy-vim 'session'

Steps to reproduce:

  1. (in original split, let's call it split 1) cd to directory X
  2. create split (let's call it split 2)
  3. cd to directory Y
  4. Save session
  5. Close terminal
  6. Open terminal
  7. Restore session
  8. Split 1 correctly restores to directory X, split 2 correctly restores to directory Y
  9. Save session and close terminal
  10. Reboot
  11. Open terminal and restore session
  12. Split 1 is in home directory, split 2 correctly restores to directory Y

This seems to only happen when the session name is 0

bruno- commented 4 years ago

You have this at the bottom of your .tmux.conf right?

run -b '~/.tmux/plugins/tpm/tpm'

Can you try removing -b so you have this run '~/.tmux/plugins/tpm/tpm' and then see if this issue still happens?

rcywongaa commented 4 years ago

The last line of my .tmux.conf is already run '~/.tmux/plugins/tpm/tpm'

rcywongaa commented 3 years ago

Issue was due to a rogue new-session at the beginning of my .tmux.conf...