Live data from Hacker News

Show HN: Shox: A customisable status bar for your terminal

github.com

31–40 of 47 posts

Re: Show HN: Shox: A customisable status bar for your terminal

#31

I only had a quick glance at the source code and my Go is terrible so forgive me if I've misunderstood something. But am I right in the assumption that this includes a proxy that acts as a sort of "middleware" layer for the terminal without explicit support from either the shell or the terminal? If so, this might have a lot more potential than it seems. Imagine how much you could do with "terminal middleware"!

Terminal middleware already exists - screen and tmux seem to be the most popular here.

Re: Show HN: Shox: A customisable status bar for your terminal

#32
post #12

Do not pipe random scripts from the internet into | sudo bash

This can be generalized into "do not install random programs from the internet onto your machine". Familiarize yourself with the program, the author and the supply chain, then you can also `curl | bash` safely.

No, it has been demonstrated that servers can detect whether a request is being downloaded or piped to a shell, so they can vary the response accordingly, sending safe-looking content to a user who's inspecting it, and sending malicious content to a shell.

https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...

`curl | sh` is a terrible anti-pattern. It should never be encouraged.

Re: Show HN: Shox: A customisable status bar for your terminal

#33
post #25

Earlier quoted context omitted.

tmux isn't a window manager.

He probaly means tiling window manager specifically, which makes tmux's binary partitioning redundant for all but remote work. I used to use tmux much more heavily locally before I switched to a tiling window manager, now I only use it when I need to do a lot of work over SSH or am using an unstable connection or long running process etc.

I get you.

Since I moved exclusively to i3 some 10 years ago, I find myself seldomly using screen/tmux anymore.

The splitting, moving and switching of windows is just more convenient. Tmux has been relegated to start long running processes on remote servers, and remote pair programming sessions.

I could see myself using tmux more if I could find a way to get a more seemless experience when having to scroll panes, copy/paste, handle $TERM properly with vim (I always end up with partially refreshing vim colors under tmux), etc

Re: Show HN: Shox: A customisable status bar for your terminal

#34

Earlier quoted context omitted.

Pretty sure you can attach to an already attached tmux session as well, which I believe has the same behavior that you’re describing. I’ve never used screen, is what you’re describing different than what I’m talking about?

The default behavior of tmux when multiple users are attached to the same session is that each user shares the same active window. With screen users can choose the active window independently of others. You can get similar behavior in tmux by creating a new session with the "group-name" argument set to that of the name of the session you want to attach to.

in tmux a window can be in multiple sessions. but tmux also can switch between sessions easely as switching windows. if you want to connect to the same session multiple times, you need to either set that up, or you can create and use multiple sessions to the same effect.

having all windows in a single session synchronized is helpful when you share sessions with other users.

Re: Show HN: Shox: A customisable status bar for your terminal

#35
post #33
post #25

Earlier quoted context omitted.

He probaly means tiling window manager specifically, which makes tmux's binary partitioning redundant for all but remote work. I used to use tmux much more heavily locally before I switched to a tiling window manager, now I only use it when I need to do a lot of work over SSH or am using an unstable connection or long running process etc.

I get you. Since I moved exclusively to i3 some 10 years ago, I find myself seldomly using screen/tmux anymore. The splitting, moving and switching of windows is just more convenient. Tmux has been relegated to start long running processes on remote servers, and remote pair programming sessions. I could see myself using tmux more if I could find a way to get a more seemless experience when having to scroll panes, cop…

the main advantage for tmux is in remote use. i work on multiple machines (laptop, desktop, etc) and i often like to access one from the other. tmux allows me to switch devices in a seamless way. i don't use i3 but you are right about the splitting in particular. it would be nice if we could have more gui integration of tmux. like a graphical tmux client that maps split windows to resizeable gui panes

Re: Show HN: Shox: A customisable status bar for your terminal

#36

Earlier quoted context omitted.

This can be generalized into "do not install random programs from the internet onto your machine". Familiarize yourself with the program, the author and the supply chain, then you can also `curl | bash` safely.

No, it has been demonstrated that servers can detect whether a request is being downloaded or piped to a shell, so they can vary the response accordingly, sending safe-looking content to a user who's inspecting it, and sending malicious content to a shell. https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b... `curl | sh` is a terrible anti-pattern. It should never be encouraged.

familiarizing yourself with the program, the author and the supply chain is more than just inspecting the downloaded code.

Re: Show HN: Shox: A customisable status bar for your terminal

#38
post #3

Why not just use tmux? Then you get all the features that comes with too.

I need a cheat sheet to use tmux. I've no doubt I'd find it valuable if I spent some time learning it, but I can also appreciate this thing for adding a nice function without changing the way I work. Not a dig at tmux!

Re: Show HN: Shox: A customisable status bar for your terminal

#40
post #38
post #3

Why not just use tmux? Then you get all the features that comes with too.

I need a cheat sheet to use tmux. I've no doubt I'd find it valuable if I spent some time learning it, but I can also appreciate this thing for adding a nice function without changing the way I work. Not a dig at tmux!

there are plenty of tutorials to get you started, but most importantly you can run tmux without having learned any of it.

start it and continue working as if it wasn't there. then read or learn one thing or two about it, and use only that.

the first thing to learn is how to attach to an existing session. that alone can be useful.

if you scroll a lot on your terminals, you'll want to learn scrolling in tmux.

if you use tabs or multiple windows, you' want to learn how create and switch windows in tmux.

beyond that every feature in tmux is additional to your regular terminal use so you can pick and choose the features you want to learn as you go along and otherwise continue without changing the way you work.

i have used tmux for a decade and i am still learning new stuff, like how to effectively use split windows.

Post reply on HN