Live data from Hacker News

My tmux setup

unwiredcouch.com

51–60 of 101 posts

Re: My tmux setup

#51
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?

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.

Re: My tmux setup

#52
post #49

How does that email script work? Here it is: https://github.com/mrtazz/bin/blob/master/imap_check.py This looks for a file at ~/.netrc What is the format of that file? Google results can't find this being used for email anywhere.

I'm using the netrc account field as an identifier on which I filter account info in the lambda function. More info about fields are here http://linux.die.net/man/5/netrc

Re: My tmux setup

#53
post #33
post #23

Earlier quoted context omitted.

Reader of that book, you finally got me to kick my screen habit with it and now I have a new tmux addiction. That said, tmux is way easier to use compared to screen. And with 1.8 and text reflow it pretty much has every feature from screen I ever wanted/needed/used.

I also love the new zoom pane that comes with 1.8 prefix . It comes very handy!

Is there an option/way to have "lables" in panes. Just like you have a info bar for windows, I would love to label my panes. Normally have a bunch of panes setup for logs, and it would be really nice to label them so i could tell what is in each pane.

Re: My tmux setup

#54
post #24

jnycs: you have been hellbanned for no particular reason.

Probably getting his very first comment downvoted a bunch triggered some heuristic. jnycs: email info@ycombinator.com to appeal.

Re: My tmux setup

#55
post #42

Earlier quoted context omitted.

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.

You can set readline's editing mode to vi so that anything that uses readline will then have vi-style bindings. Very useful, particularly when combined with rlwrap for those few programs that don't have readline support. Zsh doesn't use readline (it has it's own line editor) but it can be set to vi-style input too. (Actually, at least on my system, bash doesn't seem to be linked with libreadline.. I'm not sure if it…

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

Re: My tmux setup

#56
post #44
post #28

Earlier quoted context omitted.

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.

You appear to have invented some other post to respond to, mine said nothing about ctrl+b.

Ctrl+b is the standard key combo for tmux, which is why that was mentioned in the article in the first place.

Re: My tmux setup

#57
post #55
post #42

Earlier quoted context omitted.

You can set readline's editing mode to vi so that anything that uses readline will then have vi-style bindings. Very useful, particularly when combined with rlwrap for those few programs that don't have readline support. Zsh doesn't use readline (it has it's own line editor) but it can be set to vi-style input too. (Actually, at least on my system, bash doesn't seem to be linked with libreadline.. I'm not sure if it…

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.

Re: My tmux setup

#58
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 Alt. No double strokes: https://github.com/nviennot/tmux-config

Re: My tmux setup

#59
post #33
post #23

Earlier quoted context omitted.

Reader of that book, you finally got me to kick my screen habit with it and now I have a new tmux addiction. That said, tmux is way easier to use compared to screen. And with 1.8 and text reflow it pretty much has every feature from screen I ever wanted/needed/used.

I also love the new zoom pane that comes with 1.8 prefix . It comes very handy!

Didn't know about this. Love it. Appears to be prefix z for me. C-z seems to background the tmux session, which seems reasonable.

Re: My tmux setup

#60

One of things I've been meaning to ask: do people who use tmux mostly run a windows machine as their desktop?

For me yes, Win7 + MobaXterm which totally rocks, so much so I paid for it. Worth the punt just for the X support i.e. PyCharm running on remote server with UI on my Win7 desktop.
Post reply on HN