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

tmux-resurrect commands through tmux in -CC session #179

Open
jhgorse opened this issue Jan 18, 2017 · 2 comments

Comments

@jhgorse
Copy link

commented Jan 18, 2017

Greetings!

I run tmux -CC in iTerm2 and I do not have access to the usual key bindings via prefix (C-b) keys in the -CC session windows.

How else can I interact with tmux-resurrect to save/restore the session?

@bruno-

This comment has been minimized.

Copy link
Member

commented May 30, 2017

Hi,

while I experimented with tmux + iTerm2 I must admit I never understood what it is about.. so this advice might or might not work:

tmux-resurrect key bindings just call plain old bash scripts. You should be able to manually run these scripts with:

  • for save: ~/.tmux/plugins/tmux-resurrect/scripts/save.sh
  • for restore: ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh
@gnachman

This comment has been minimized.

Copy link

commented Sep 18, 2018

From the issue report on iTerm2 (https://gitlab.com/gnachman/iterm2/issues/7049) it looks like tmux-resurrect must be running tmux with -CC.

delphym added a commit to delphym/tmux-resurrect that referenced this issue Apr 3, 2019

Corrected what is the expected value of the $CURRENT_DIR
It is neccessary for the cases when runnign the scripts without a
possibility of using key bindings as adviced in issue tmux-plugins#179
tmux-plugins#179

The case is e.g. saving the sessions for byobu and having the symlinks
created at $HOME/bin/ as:
byobu-session-restore ->
/home/delphym/.tmux/plugins/tmux-resurrect/scripts/restore.sh

byobu-session-save ->
/home/delphym/.tmux/plugins/tmux-resurrect/scripts/save.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.