1

Here's the workflow:

  1. Open GNU screen: screen
  2. Create a vertical split: C-a |
  3. Switch to the newly created split: C-a TAB
  4. Create a new window / terminal in this split: C-a c

How to do steps 3 and 4 at once? Is there an option that could be added to ~/.screenrc in order to achieve that?

(Note: I come from tmux, where splitting automatically spawns a terminal.)

2

I'm not very familiar with screen, so there may be better ways, but you can change the binding for | in your ~/.screenrc with the line

bindkey | eval "split -v" "focus" "screen"

This make the key run the 3 commands equivalent to your key sequence.

  • That's straightforward indeed. I'll wait a little bit more to see if someone comes up with a more idiomatic way, otherwise I'll accept your answer. Thanks! – thiagowfx May 26 '18 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.