Live data from Hacker News

Use fzf for tmux session switching

waylonwalker.com

51–60 of 61 posts

Re: Use fzf for tmux session switching

#51
Once I discovered fzf a couple of years ago, I instantly knew it was the future of shell. My entire workflow is now driven by fzf. I use it together with bash, vim, cd (and "z" command), even mkdir (autocomplete from "words" file).

Re: Use fzf for tmux session switching

#52
post #27

Earlier quoted context omitted.

6 months or a year ago I started using "mosh" to connect to my main machine from my laptops, and I run tmux on that machine. When I have a network cut, I just wait a few seconds and it's back in business, whether that's moving locations (I use a VPN so my IP is always the same, currently Nebula but has been wireguard and ZeroTier in the past), legit network problems, switching to my cell phone...

i've done this with mosh in past which gets you part of the way there. problem is that it then doesn't work for local sessions. so you run it locally, which gives you local sessions and window management, but then all remote connections have to be via mosh -or- you mosh into the datacenter which is good for accessing infra, but leaves you having to run a separate instance for local work.

Agreed. In my case, all my "local" work is on my workstation via mosh, and my datacenter work is also done in that same tmux session. My laptop(s) are just thin clients for that work. That's great for the Chromebooks, but kind of a shame for in the case of a more capable laptop... For my workflow though, it works well.

Re: Use fzf for tmux session switching

#53
post #21

I still don't quite understand the value of tmux, at least on a modern machine. If I need another terminal, I just pop open another terminal window and tile or tab it. If I want to keep a set of terminals organized, I use workspaces (at the OS level). I can obviously see its value if there is no window manager or desktop environment on the system I'm using, but that's rare these days–if I'm working on a system with n…

Imagine you're at work, and you have tmux running with 15 sessions to various machines. You go home, connect to that tmux session and you can keep working without having to re-connect/SSH and log into 15 machines and just continue where you left off. It's sort of like being able to RDP into the machine you were working on except it's text-based.

You lost me at go home and keep working...

Re: Use fzf for tmux session switching

#54
post #28

Earlier quoted context omitted.

Imagine you're at work, and you have tmux running with 15 sessions to various machines. You go home, connect to that tmux session and you can keep working without having to re-connect/SSH and log into 15 machines and just continue where you left off. It's sort of like being able to RDP into the machine you were working on except it's text-based.

So something like abduco ( https://www.brain-dump.org/projects/abduco/ ) should do the job too? I think GP's comment was more concerened with the terminal multiplexing, not the ability to detach a session.

abduco claims to be a tmux alternative, which there are probably a few - I don't think any of these points being made are attempting to claim tmux is the only tool with these features, only that the features are very useful - tmux just happens to be one of the most popular tools in this category of tools

Re: Use fzf for tmux session switching

#55

If you like tmux, take a look at zellij ( https://github.com/zellij-org/zellij ), it is a modern alternative that has a lot of nice features (either developed, or on the roadmap) that tmux is missing. Have no relationship to it, just a happy "customer".

Wow this is the first time I've ever seen a comment that genuinely made me feel like an old gray beard. I remember getting into Unix just a little before the time tmux came onto scene as the modern alternative to screen, and being in awe of all the people who had used screen long enough to have a list of things that could be modernised about it. Now tmux is in that position!

I only started using Tmux when I installed CentOS 8 on my work PC in 2020 and discovered that GNU Screen was no longer the default terminal multiplexer. I figured it was about time that I “get with the programme”. Now, I’m starting to feel increasinglylike Abe Simpson: https://invidious.kavin.rocks/watch?v=5DlTexEXxLQ

Re: Use fzf for tmux session switching

#56

If you like tmux, take a look at zellij ( https://github.com/zellij-org/zellij ), it is a modern alternative that has a lot of nice features (either developed, or on the roadmap) that tmux is missing. Have no relationship to it, just a happy "customer".

Wow this is the first time I've ever seen a comment that genuinely made me feel like an old gray beard. I remember getting into Unix just a little before the time tmux came onto scene as the modern alternative to screen, and being in awe of all the people who had used screen long enough to have a list of things that could be modernised about it. Now tmux is in that position!

tmux is still the "new cool kid" for me :-D it took a while for me to migrate from screen to tmux, it probably going to take a very long time to migrate off tmux (not that i have any reasons to)

Re: Use fzf for tmux session switching

#58

If you like tmux, take a look at zellij ( https://github.com/zellij-org/zellij ), it is a modern alternative that has a lot of nice features (either developed, or on the roadmap) that tmux is missing. Have no relationship to it, just a happy "customer".

Wow this is the first time I've ever seen a comment that genuinely made me feel like an old gray beard. I remember getting into Unix just a little before the time tmux came onto scene as the modern alternative to screen, and being in awe of all the people who had used screen long enough to have a list of things that could be modernised about it. Now tmux is in that position!

> Wow this is the first time I've ever seen a comment that genuinely made me feel like an old gray beard.

Here's a nickel, kid...

https://en.m.wikipedia.org/wiki/DESQView

Re: Use fzf for tmux session switching

#59

If you like tmux, take a look at zellij ( https://github.com/zellij-org/zellij ), it is a modern alternative that has a lot of nice features (either developed, or on the roadmap) that tmux is missing. Have no relationship to it, just a happy "customer".

Unless there's something like byobu, I'll stick to tmux for the time being.

Re: Use fzf for tmux session switching

#60

Once I discovered fzf a couple of years ago, I instantly knew it was the future of shell. My entire workflow is now driven by fzf. I use it together with bash, vim, cd (and "z" command), even mkdir (autocomplete from "words" file).

> and "z" command

I use zoxide now, it's slightly faster.

Post reply on HN