Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4653

Bash script to start a session on screen and split terminal on startup

$
0
0

What I want basically looks like this (terminal split in 3 areas with screen).

terminal split in 3 areas with screen

To manually do that I use screen and then split once vertically (Ctrl-a + |) and then once horizontally (Ctrl-a + S). Finally I end with (Ctrl-a + TAB, Ctrl-a + c) to start the command line on the two new areas.

Is there a way to automate this with a bash script and using .bashrc ?

I am using xterm-256color in Ubuntu 22.04.


Viewing all articles
Browse latest Browse all 4653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>