Lumen

Split terminal on Mac and Linux

Side-by-side shells in one window, in the terminal you have now or one built for it.

Updated

To split a terminal on a Mac, use iTerm2 (Cmd+D), Ghostty or Lumen (Cmd+D). The built-in Terminal.app has a "Split Pane" command, but it shows two views of the same shell, not two shells. On Linux, GNOME Terminal can't split at all; use Terminator, a terminal with splits built in, or tmux, which works inside any terminal.

Below is how to split a terminal on Mac and Linux in each of these, with the shortcuts, and what each kind of split is good for.

Split terminal on Mac

Terminal.app

View > Split Pane (Cmd+D) divides the window top and bottom, and Cmd+Shift+D closes the split. Both halves show the same session: you can scroll one half back to read earlier output while the other follows the prompt, but you can't run a second command beside the first. There is no side-by-side split. For two shells you need tabs, two windows, tmux, or another terminal. The Mac Terminal alternatives guide lists the options.

iTerm2

iTerm2 splits a tab into panes, each a separate session:

  • Cmd+D: split side by side
  • Cmd+Shift+D: split top and bottom
  • Cmd+Option+Arrow: move between panes
  • Cmd+Shift+Enter: zoom the current pane, and again to restore

You can drag the dividers, and with "broadcast input" type into every pane at once. The iTerm2 vs Terminal comparison covers the other differences.

Split terminal on Linux

GNOME Terminal and Ptyxis

GNOME Terminal has tabs but no split panes, and the long-standing request for them was closed without being added. Ptyxis, which newer Fedora and Ubuntu releases use as their default terminal, has no splits either. Your options are tmux inside them, or a different terminal. See GNOME Terminal alternatives.

Terminator

Terminator exists to split. Right-click for the menu, or:

  • Ctrl+Shift+O: split horizontally (one above the other)
  • Ctrl+Shift+E: split vertically (side by side)
  • Alt+Arrow: move between panes

It also has groups and broadcast typing, which people use to run the same command on several servers. It's packaged by most distros.

tmux, in any terminal

tmux splits inside whatever terminal you already use, on Mac and Linux alike. With the default prefix Ctrl+B:

  • Ctrl+B then %: split side by side
  • Ctrl+B then ": split top and bottom
  • Ctrl+B then an arrow key: move between panes

Its real advantage is that sessions survive: detach, close the terminal or lose the SSH connection, and reattach later with everything still running. That makes it the right tool on remote servers. The cost is a prefix key before everything and a config file to make it comfortable. If you only want local splits, a terminal with native splits is simpler; tmux alternatives compares them.

Splitting a terminal in Lumen

Lumen has split panes on both Linux and macOS:

ActionLinuxmacOS
Split rightCtrl+Shift+DCmd+D
Split downCtrl+Shift+ECmd+Shift+D
Move between panesCtrl+ArrowsCmd+Arrows
Focus Mode (zoom one pane)Ctrl+Shift+EnterCmd+Shift+Enter

Drag a gap to resize, or double-click a gap to make the panes even. New panes open in the current shell's folder, thanks to shell integration. Each tab shows how many panes it holds, and the whole layout, with every split, size and folder, comes back next time you open Lumen. The programs that were running don't come back, only the layout. Any binding can be changed in [keys] in ~/.config/lumen/config.toml.

From a script, lumen msg can open splits and type into them, which is handy for a fixed dev layout. The Projects & Tasks plugin, from the plugin registry, reads a .lumen-layout.toml in a project and opens its tabs, splits and dev tasks for you.

Lumen panes are local to the window: there is no detach and reattach. On a server, or if you need sessions that outlive the window, use tmux, inside Lumen or any other terminal.

Questions

How do I split the terminal on a Mac?

In iTerm2, Ghostty or Lumen, press Cmd+D. Terminal.app's Cmd+D only shows two views of the same shell, top and bottom, so use another terminal or tmux for two shells side by side.

Can GNOME Terminal split the screen?

No. GNOME Terminal has tabs but no split panes. Run tmux inside it, or use a terminal with splits such as Terminator, Ghostty, kitty or Lumen.

How do I split a terminal in tmux?

Press Ctrl+B then % to split side by side, or Ctrl+B then " to split top and bottom. Ctrl+B and an arrow key moves between panes.

Does Lumen replace tmux?

For local splits, yes. It doesn't keep sessions running after you close the window, and has no detach or reattach, so keep tmux for remote servers.

Try Lumen

Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.

curl -fsSL https://lumenshell.dev/install | sh
brew install --cask lumenshell/tap/lumen