Live data from Hacker News

My tmux setup

unwiredcouch.com

91–100 of 101 posts

Re: My tmux setup

#91
What is the use case of screen/tmux beside the window tiling which I do with my WM? Can you please give me some examples; for some time I was a screen user but just used it for tiling the terminal window which I do not need anymore with a tiling WM.

Re: My tmux setup

#93
post #51

Earlier quoted context omitted.

Agreed completely. I used Ctrl-] with screen and just kept that convention with tmux. Ctrl-a is a non-starter for Emacs users, and even neglecting that, there are many contexts where Ctrl-a/Ctrl-e navigation is enabled and useful.

Serious question, what does tmux have to offer emacs users? I used and loved tmux back when vim was my editor, but after switching to emacs (thanks evil-mode), I stopped using it because emacs seems to cover all the bases on its own.

Try running emacsclient inside tmux. It's a good combination.

Re: My tmux setup

#94
post #28
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

Because ctrl-a is extremely simple, physically ... for one hand, etc. ctrl-b is fairly quick and easy if you use two hands (which is inferior to using one hand) and is quite a bit more difficult than ctrl-a when using one hand.

I ctrl+b with my left hand only. Pinky on left ctrl, index finger on b. I've never had any issues with it.

Re: My tmux setup

#95
post #84

I've been using screen for years. It works well for me. Can someone list some reasons to switch to tmux? Just about the only thing which annoys me in screen is the awkward switch to "copy mode" to scroll, instead of just hitting PgUp.

no patching for vertical and horizontal splits (I know screen doesn't do one of them without a fair bit of work).

tmux isn't a dead project.

Spirit of exploration? I started with tmux and no screen experience, but I've converted a few people to tmux by them just giving it a chance, basically.

Re: My tmux setup

#96
post #57
post #55

Earlier quoted context omitted.

Bash uses .inputrc which configures readline, so if it's not actually using libreadline, it's emulating it pretty well.

It looks like bash does use readline, though it's not dynamically linked with it (at least on my system). Kind of seems like bash and readline are intertwined more than I thought; the git repo for bash has a distribution of readline included in it.

That makes sense to me. The shell is fundamental to the system, and is so heavily intertwined with readline that it is very sensitive to ABI/API changes. Consider: if you upgrade your readline without upgrading bash, or vice versa, you lose the ability to fix the problem even in single user mode. Having Bash control its own readline usage seems like the safest option, though conceptually a bit more complex.

Re: My tmux setup

#97

Earlier quoted context omitted.

I've been using `

For me ` is taken by tilda: https://github.com/lanoxx/tilda

I use the Windows Menu key (the Windows key to the right of the spacebar) for that. Except I use yeahconsole, which is the same concept without the Gnome dependencies.

Such a handy feature, isn't it. I would be lost without my drop-down console.

Re: My tmux setup

#98
post #8

Earlier quoted context omitted.

The only thing ctrl-A is used for by me besides screen (or rather, tmux after I remapped it), is incrementing a number in vim. Not really a big deal.

Most people I know use it to go to the beginning of a line in programs that use readline, which includes the shell as well as most programming language interpreters.

I map Ctrl-q to beginning of line in .inputrc.

    Control-q: beginning-of-line
I know, I know, now we are remapping all over the place. But my muscle memory for Ctrl-a was too ingrained after years of screen usage.

Re: My tmux setup

#99
post #5
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

Indeed. I've been using Ctrl-\ as my Ctrl-a in screen (and occasionally tmux). Turns out that I never use that keystroke in real life.

Isn't that siginfo?

You can send it to ping on linux to print a report line without terminating, for example.

Re: My tmux setup

#100
post #2

>But the years of using screen have ingrained in my muscle memory to use ctrl-a I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?

I use backtick. It's great not having to reach for a control or alt key to change window.

It is a minor annoyance in markdown but in shell programming I use `$(...)` instead, since it can be hard to tell if a character is a backtick or a single quote.

Post reply on HN