Live data from Hacker News

My tmux setup

unwiredcouch.com

11–20 of 101 posts

Re: My tmux setup

#11
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.

Re: My tmux setup

#12
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.

I've been using `

Re: My tmux setup

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

Control-A / Control-E is by far the most uniform start of line/end of line keyboard shortcut in OS X, and moreover I can use it without taking my hands off home row.

Re: My tmux setup

#16
I know the author says he keeps his tmux sessions open indefinitely, but I've found Teamocil (or tmuxinator) to be very useful for defining environment starting points that can be launched to get back to a specific tmux state.

For example, I have a web project that I run via `teamocil work` that has several windows and screens dedicated to monitoring multiple servers via ssh and multiple environments and services locally (mongo, mysql, grunt, node, etc)

Re: My tmux setup

#17
post #5

Earlier quoted context omitted.

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.

I've been using `

Same here. It's really hard to press if you don't swap Ctrl and Caps Lock though.

Re: My tmux setup

#19

I can't recommend Pragmatic Bookshelf's book on tmux enough: http://pragprog.com/book/bhtmux/tmux It's got the whole thing covered end-to-end if you ever wanted to get around learning it.

Author of that book here. Thank you for the kind words.

Re: My tmux setup

#20
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.

I'd always used Ctrl-a in screen because it was the default. When I moved to tmux I just moved it there, but tmux lets me send the Ctrl-a key sequence through to those apps.

So if I want to go to the beginning of a line in Bash, I just press C-a C-a (which actually works if I hold down Ctrl and press 'a' twice.

Not a big deal at all, and since I remap Caps Lock to Ctrl, the command combo is right on my left hand. (I slide my hand over a bit as if I were playing guitar or piano, rather than stretch fingers, so pinky on CapsLock, ring finger on a.)

Post reply on HN