Use fzf for tmux session switching
51–60 of 61 posts
Re: Use fzf for tmux session switching
#52Earlier 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.
Re: Use fzf for tmux session switching
#53I 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.
Re: Use fzf for tmux session switching
#54Earlier 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.
Re: Use fzf for tmux session switching
#55If 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!
Re: Use fzf for tmux session switching
#56If 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!
Re: Use fzf for tmux session switching
#57Re: Use fzf for tmux session switching
#58If 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!
Here's a nickel, kid...
Re: Use fzf for tmux session switching
#59If 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".
Re: Use fzf for tmux session switching
#60Once 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).
I use zoxide now, it's slightly faster.