Do you have experience with tmux-resurrect?

Hello Friends

Do you have experience with tmux-resurrect?

I am doing this question because its latest commit is since 2 years ago, so I don’t have idea about its current status. Therefore I want to know if I can install it and use it in peace.

Thanks for your understanding

1 Like

I have no experience with tmux.
I use session saving in Xfce to restore things after shutdown. It brings back the windows with their histories and their current working directory, and restores the browser with its content, but if I had a vi or a julia window active, it does not restore the active editing session… so I presume it would be the same with tmux… it would bring a tmux window back, but not its content ?

Your tmux-resurrect plugin is supposed to restore the content?

3 Likes

Hello Neville

As usual thanks for the reply

I need Tmux to be used in Server Environment. Thus there is no xfce

Your tmux-resurrect plugin is supposed to restore the content?

According with a simple research I did do: is restored all the sessions including their Windows with their respective panes

Furthermore theoretically is possible reuse it in other machine. Therefore if exists other Server as mirror and is need it re-use all the sessions with all the respective mentioned layouts, is possible

2 Likes

I’ve used tmux a bit. The default hotkey is ctrl-b and then you would type β€˜a’ to attach to an existing session. I have not created multiple tmux sessions so I can’t speak to that, but it sounds like you should be able to list the sessions and then attach to a particular one.

I can say that it doesn’t seem to allow you to just simply scroll backwards and see previous output. You just see what is on the screen at the time. I’ve seen some mention of ways to do that, but I don’t have a reference for you.

2 Likes

Hello

That scenario is when tmux is running at realtime in peace. I don’t have problem about that all

The problem is if the OS is rebooted, all the sessions of tmux are lost

2 Likes

Ctrl b [
then use arrow keys to scroll
then β€˜enter’ to get bsck to normal mode

I am no expert… I used tmux once to make vim talk to the julia REPL… scrolling was essential… it is about the only thing I learnt.
Have abandoned all that complicated nonsense with Julia… I just use vi and copypaste into the REPL.
I find I am more productive in coding without all the fancy tools

3 Likes

I use tmux for home and work (to keep remote sessions to servers β€œalive” if I lose my connection…

Scrolling isn’t ideal… I’ll sometimes have a 2nd session to the same server for scrolling through log files etc… Ctrl+B+[ is a kludge, or it feels like one… It feels like I’ve travelled back in time 25 years and using a Wyse or DEC VT100 connected to a UNIX server over serial… *

I know about Ctrl+B, and also Ctrl+B+D (to disconnect but leave session running).

But I’m getting lazy since I started re-using my bash script yoyo.bash :

╭─x@titan ~
β•°β”€βž€  bat ~/bin/yoyo.bash
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /home/x/bin/yoyo.bash
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ #!/usr/bin/env bash 
   2   β”‚ tmux new-session -s "YOYO" -d
   3   β”‚ tmux split-window -v
   4   β”‚ tmux split-window -v
   5   β”‚ tmux -2 attach-session -d 
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

* funny story - tangent : one company I worked for didn’t supply a laptop or serial cables or anything - and I occasionally had to do stuff on Cisco routers - so - it was all in the same physical β€œprecinct” are - I’d carry a DEC VT100 from one place to another on foot, to hook up to Cisco routers…

4 Likes

Thanks for the feedback Dan

Just being curious, if you have tmux with many sessions with their respective windows and them with their panes (even with specific layouts) being complex. Did you create all that structure with a simple script?

My point is it seems you never played with tmux-resurrect

1 Like

To all thanks for the replies … each experience always are valuable

1 Like