Hacker News new | ask | show | jobs
by joeyo 2237 days ago
Could not agree more. I throw in underscore and backslash for good measure too:

  bind-key | split-window -h
  bind-key \ split-window -h
  bind-key - split-window -v
  bind-key _ split-window -v
2 comments

This is really helpful. I hadn't thought about adding bindings that work without shift. I just tried this and had to escape the slash to get the second binding to work:

  bind-key \\ split-window -h
Actually, it depends on your tmux version. Looks like

  bind-key '\' split-window -h
is more portable between versions.
That’s it right there. I basically have the same thing. Worst comes to worst, Since they are visually so close, when I started, I never forgot what did what.