Lumen

Terminal with tabs

Nearly every terminal has tabs now. What differs is how you name, find and restore them.

Updated

If you want a terminal with tabs, you probably have one: Terminal.app, iTerm2, GNOME Terminal, Konsole, Ptyxis, kitty, WezTerm, Ghostty and Lumen all have them. The notable exception is Alacritty, which leaves tabs to your window manager or tmux (on macOS it can use the system's native window tabs). The differences worth caring about are naming, status at a glance, and whether your tabs come back after a restart.

Terminal tabs compared

TerminalPlatformNotes
Terminal.appmacOSNative macOS tabs; restores windows with macOS
iTerm2macOSTab colours per profile, its own session restoration
GNOME TerminalLinuxCtrl+Shift+T for a new tab; Alt+1 to Alt+9 jump to one
kittyLinux, macOSTab bar drawn by kitty, configurable style
WezTermLinux, macOS, WindowsTab titles scriptable in Lua
GhosttymacOS, LinuxNative tabs on each platform
LumenmacOS, LinuxPane counts, badges, full layout restore

Tab tricks that work in most terminals

  • Switch by position. Cmd+1 to Cmd+9 in iTerm2, Alt+1 to Alt+9 in GNOME Terminal. Cmd+Shift+[ and Cmd+Shift+] cycle tabs in most Mac apps, Ctrl+PageUp and Ctrl+PageDown on Linux.
  • Set the title from the shell. printf '\e]0;deploy\a' sets the window or tab title in almost every terminal. Put it in a function so long jobs label their own tab.
  • Open the tab where you are. With shell integration reporting the current folder, a new tab starts in the same directory. See shell integration.
  • Merge windows. On macOS, Window > Merge All Windows turns stray Terminal.app windows into tabs of one window.
  • Tabs plus splits. One tab per project, splits inside it for the editor, server and tests. See how to split a terminal.

Tabs in Lumen

Lumen draws its tabs in a custom title bar that follows the current theme. Each tab shows how many panes it holds, so a tab with a four-way split looks different from a single shell.

  • Reorder by dragging.
  • Rename by double-clicking the tab, or with Ctrl+, (Cmd+, on macOS).
  • New tabs open in the current folder, not your home directory.
  • Finished-command dots. When a command that ran for at least notify-after seconds finishes in a tab you're not looking at, the tab gets a green or red dot for success or failure, alongside a desktop notification.

Badges and colours from scripts

With socket-api = true in your config, lumen msg can set a tab's title, badge and colour:

lumen msg tab-style --badge dev --color green

Use it to mark a production SSH tab red, or a dev server tab green. Plugins can do the same within the permissions you approve; the built-in Build Status plugin, for example, puts ✓ cargo test · 12s in the tab title. More on that in terminal plugins.

Session restore

Close Lumen and open it again, and every window, tab, split and pane size comes back, with each pane in its folder, the focused pane, your tab names and the window positions. The programs that were running are not restored: you get the layout and folders, then rerun what you need. If you want processes that keep running while the terminal is closed, use tmux, or iTerm2, whose session restoration can keep jobs alive across an app restart.

For a fixed set of tabs per project, the built-in Projects & Tasks plugin opens the tabs and splits described in a project's .lumen-layout.toml.

Which terminal with tabs to pick

On a Mac, Terminal.app's tabs are fine for light use. iTerm2 suits people who want deep per-profile tab colouring and session restoration of running jobs. kitty and WezTerm suit people who want to script the tab bar. Lumen suits people who want tabs that show status (pane counts, finished-command dots, badges) and a layout that comes back on its own. For a broader comparison, see the best terminal emulators and Mac Terminal alternatives.

Questions

Does Mac Terminal have tabs?

Yes. Press Cmd+T in Terminal.app for a new tab, and use Window > Merge All Windows to gather separate windows into tabs.

Does Alacritty have tabs?

Not a tab bar of its own. Alacritty leaves tabs to your window manager or tmux; on macOS it can use the system's native window tabs.

How do I rename a terminal tab?

From the shell, printf '\e]0;name\a' works in most terminals. In Lumen you can also double-click the tab or press Ctrl+, (Cmd+, on macOS).

Does Lumen restore tabs after a restart?

Yes: windows, tabs, splits, sizes, folders, focus and tab names all come back. Running programs don't; use tmux if you need processes to outlive the window.

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