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

Shortcut for Connecting to Last Open Session #3867

Open
ShiromMakkad opened this issue Dec 11, 2024 Discussed in #3689 · 1 comment
Open

Shortcut for Connecting to Last Open Session #3867

ShiromMakkad opened this issue Dec 11, 2024 Discussed in #3689 · 1 comment

Comments

@ShiromMakkad
Copy link

Discussed in #3689

Originally posted by ShiromMakkad October 22, 2024
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?

I'd like a feature where there's a single command, maybe zellij a last-session or zellij last-session that can be run without knowing the name of the last session you connected to. For me, I work on many different sessions, but the next morning, I almost always want to connect to the last session I was on. I'd love to create an alias for this and just run it every time I connect over ssh.

@sstark
Copy link

sstark commented Dec 18, 2024

In case you were connected to more than one session on logout, which one would be the last session? In case that is known, what behavior would be desired after a reboot? Would you still want to re-open the session that was last active?

I asked that myself and the more I think about it, the more I think I should just give my session a useful name and always attach by name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants