Live data from Hacker News

Show HN: Shpool, a Lightweight Tmux Alternative

github.com

61–70 of 201 posts

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#61

I super duper highly recommend iterm2 (macos) + its integrated tmux support. It was relatively popular in my circles at google when I was there. It comes with this tool’s benefit of native scrolling/cp paste PLUS the huge benefit of “right click to split vertical/horizontal”.

On that front: I've been using wezterm which includes a built-in tmux+mosh functionality, and it works quite well. It gives you first-class scroll/copy/paste management and multi-windows, plus session re-attachment. Probably 50% of my use of my mac is just SSHing in to my Linux box, and wezterm works great for that.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#62
post #52

nohup is also useful for this situation, but a lot of people don’t seem to know about it!

Does nohup allow attaching back to the session? That seems to be the primary use case of shpool.

Nohup still attaches to the terminal's stdin/out/err. If the process is known to be non-interactive, redirecting to log files should be sufficient (tail -f to "reattach"). If it does expect interaction, creating a fifo file to redirect stdin from should work, but I've never tested it.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#63
post #53

I super duper highly recommend iterm2 (macos) + its integrated tmux support. It was relatively popular in my circles at google when I was there. It comes with this tool’s benefit of native scrolling/cp paste PLUS the huge benefit of “right click to split vertical/horizontal”.

The last time I used it, which was probably pushing 5 years ago, it was a big drain on the battery. It was enough that I went back to Terminal.app. Anyone else experience that? Has it improved?

I believe iTerm2 has been GPU accelerated for some years now which probably helps. I’ve only been using it for 3-4 years and haven’t had this issue.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#64
post #19

Earlier quoted context omitted.

I assumed they meant “lightweight” in the sense that tmux can take quite a bit of setup and practice to get comfortable in, when using for the very first time. I love tmux but it’s definitely not “n00b” friendly.

$ tmux # run your command in it # Ctrl+b D to detatch later, to attach back to it $ tmux a -t 0 That probably covers 50% of usage. The rest would be naming the sessions, splitting the window panes. Anything else?

Yes.

Window management, mouse support, key bindings (I really dislike the defaults for a few of them), selection/copy/paste, macros etc

All stuff that doesn’t need to be configured but if you look at any tmux tutorial you’ll see boat loads of details about. Which can be confusing because how do you know if you don’t need to know it?

Also what’s the basics for one person isn’t going to be the basics for another. Eg I rarely use the detach capabilities these days whereas the panes and windows are something I do use lots.

My point is this: tmux is sufficiently complicated that a complete beginner might not know what features they need to learn.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#65

Recently learned about Zellij and it replaced my tmux usage.

If you don’t mind explaining, what are the advantages you get over tmux?

Main thing that's keeping me right now is copy select with mouse that stays in pane. Tmux would always cross horizontal panes so I'd have to zoom the current pane, alt + mouse select, then unzoom. Zellij I just drag over what I want and release the mouse button. I do however miss using the mouse for pane resizing though.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#66

I super duper highly recommend iterm2 (macos) + its integrated tmux support. It was relatively popular in my circles at google when I was there. It comes with this tool’s benefit of native scrolling/cp paste PLUS the huge benefit of “right click to split vertical/horizontal”.

Don't overlook the awesome "automatically bury session" option, which hides the "actual" iTerm2 window running the tmux control plane: https://iterm2.com/documentation-buried-sessions.html and this is the preference I mean: https://github.com/gnachman/iTerm2/blob/v3.5.2/Interfaces/Pr...

I also have dedicated .ssh/config entries for ensuring that ssh connects directly to tmux:

  Host whatever-mux
    Hostname whatever
    RequestTTY yes
    RemoteCommand /usr/bin/tmux -u -CC att

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#68

No mention of screen? I'm too old.

It is mentioned in the first paragraph of the README: shpool is a service that enables session persistence by allowing the creation of named shell sessions owned by shpool so that the session is not lost if the connection drops. shpool can be thought of as a lighter weight alternative to tmux or GNU screen.

I mean, nobody mention Screen here, in comments, when I wrote my comment

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#69
post #60

I super duper highly recommend iterm2 (macos) + its integrated tmux support. It was relatively popular in my circles at google when I was there. It comes with this tool’s benefit of native scrolling/cp paste PLUS the huge benefit of “right click to split vertical/horizontal”.

The `tmux -CC` is pretty dope. I’m still surprised that not more terminals have picked it up yet. Most GUI features (new tab, new split, scroll, search, copy/paste, etc.) just work, and it all syncs with `tmux`. Be aware though that it can be a bit buggy if you have a fancy `tmux.conf`, and that if you rely on any `tmux` plugins then most of those simply won’t work.

I'm especially surprised that tmux itself can't be used as a client of a remote control mode session.

It is pretty annoying that the only terminal that I know of that supports tmux control mode only works on mac.

Re: Show HN: Shpool, a Lightweight Tmux Alternative

#70
post #49

I'd love to try this, but most of the places that I would want to use it are servers, and the rust requirements are way beyond where debian-stable lives. Too much hassle to muck with backports and package pinning for a QoL tool - my feedback would be to try to make this install without tomfoolery on the stable branch of major distros.

There's a "debian" folder, I suspect it's trivial to build a Deb and manually install?

Seems to have pretty modest install dependencies?

https://github.com/shell-pool/shpool/blob/master/debian/cont...

Post reply on HN