Posted over 4 years ago. Visible to the public. Repeats.

How to start Terminator with split screens and custom commands running

Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout <your layout> option.

However, if you want to run custom commands in your terminals, you need to do some work to keep these terminals from closing after a command exits. You accomplish this by tweaking bash to run a command before actually starting.

Pimp your .bashrc

Add this to the end of .bashrc:

Copy
# hack to keep a bash open when starting it with a command [[ $startup_cmd ]] && { declare +x $startup_cmd; eval "$startup_cmd"; }

Store a Terminator layout

  1. Open Terminator preferences
  2. Go to the Layouts tab
  3. Press "Add"
  4. Add a custom command to each split terminal. Format: env startup_cmd="<your_command>" bash

Edit Terminator boot command

In case you ALWAYS want to run Terminator with certain options, run sudo vim /usr/share/applications/terminator.desktop and change the Exec line to this:

Copy
Exec=terminator --layout <your_layout> --maximise --working-directory=<working_directory>
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Dominik Schöler
Last edit:
6 months ago
by Dominik Schöler
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more