How do I Attach to the Last Session #3689
Replies: 2 comments 7 replies
-
What are these other sessions? As in, what is your workflow, and what is reconnecting to the last session solving? |
Beta Was this translation helpful? Give feedback.
-
What does your login script look like for this? i.e. How do you handle the session not existing yet: $ zellij attach "$USER@$(hostname)"
No session with the name 'XXXXXXX@XXXXXXX' found! e.g. Do you just manually do this once: $ zellij --session "$USER@$(hostname)"
... Or is this done with an if-statement via something I think I have the same use-case: I'm considering using zellij for a couple of different remote servers that I connect too, where the connection can be unstable (typically the VPN times out, or I relocated an connect to a different WiFi). I think I just want one consistent session on each remote machine, to use when ever I log into it. |
Beta Was this translation helpful? Give feedback.
-
I'd like to create an alias to attach to the last session used on the current machine. I know you can use
zellij a
but if there's multiple sessions, it just prints all the sessions. I want it to connect to the top session in the list, but I don't want to type out its name. Is this possible?Beta Was this translation helpful? Give feedback.
All reactions