Hacker News new | ask | show | jobs
by sikhnerd 3647 days ago
Sounds like you don't use many screen keybindings either? Likely just remapping the default key binding to match screen's in your .tmux.conf gets you 90% of the way there:

  unbind C-b
  set -g prefix C-a
  bind C-a send-prefix
fwiw, the shortcut to enter copy mode in tmux and screen is the same C-a [
1 comments

I'd end up trying to use the wrong bindings on systems that don't have the configuration yet. I've just got too many boxes/VMs (and have too many individual users on each) and haven't gone to the trouble to setup a solution for rc files in a long time (since before my current batch of servers was deployed). Solving that problem is probably a productive use of my time.
I solved the same situation by making a git repo of my rc files.

It's nice.

One thing to keep in mind is to have it look for local files/scripts to source too. That way you can keep per-system tweaks out of the global runtime configuration.

Also, passwords. Don't put passwords, or anything you don't want leaked in the rc repo. You could have it private, but that's not fool proof.

Yep, I even had a makefile that set the right bindings for new boxes. I ended up just learning the ctrl-B binding instead.