Live data from Hacker News

My tmux setup

unwiredcouch.com

1–10 of 101 posts

Re: My tmux setup

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

Re: My tmux setup

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

Well, some of use vi bindings, and Ctrl+a isn't as commonly used there.

Re: My tmux setup

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

Re: My tmux setup

#6
For the vim lovers, this trick is quite good :

  unbind [ # free the weird binding
  set-window-option -g mode-keys vi # switch to vi bindings
  bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode
  bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim
  bind-key -t vi-copy y copy-selection # yank with y
  unbind p # free another weird binding 
  bind p paste-buffer # paste with crtl-a p

Re: My tmux setup

#7
tmux is like that thing that you hear about quite often, that you think it's not that useful, but that, once you try, you realize why and where its fame comes from.

I adopted tmux about a month ago and I can't really complain much. It's just awesome. If you work a lot in the terminal (I do), I would highly recommend using it.

Re: My tmux setup

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

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.

Re: My tmux setup

#9
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 use ctrl-_. In many terminals you can generate it with ctrl + 7 and/or ctrl + ?.
Post reply on HN