Lumen

How to customize the Mac terminal

A better prompt, a readable font, a colour theme and two zsh plugins. Most of it lives in your shell, so it works in any Mac terminal app.

Updated

To customize the Mac terminal, change four things: the prompt, the font, the colours and your zsh plugins. The prompt and plugins live in ~/.zshrc, so they follow you to any terminal app. Font and colours are set in the app itself. This guide covers each, for Terminal.app, iTerm2 and Lumen. You'll need Homebrew.

1. A better prompt

macOS uses zsh by default. The quickest upgrade is Starship, a prompt that shows your Git branch, language versions and the last command's status, and works in every terminal:

brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc

Open a new tab to see it. Settings go in ~/.config/starship.toml. If you prefer to stay minimal, zsh's own prompt is set with PROMPT in ~/.zshrc; PROMPT='%1~ %# ' shows just the current folder.

2. A font with icons

Fancy prompts use icons from Nerd Fonts. Install one with Homebrew:

brew install --cask font-jetbrains-mono-nerd-font

Then select "JetBrainsMono Nerd Font" in your terminal (below). Size 13 to 15 suits most screens. Our guide to terminal fonts compares the popular choices.

3. zsh plugins

Two plugins make the biggest difference: suggestions from your history as you type, and syntax colouring that shows a typo in red before you press Return.

brew install zsh-autosuggestions zsh-syntax-highlighting

Add these lines to the end of ~/.zshrc, with syntax highlighting last:

source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Press the Right arrow to accept a suggestion. Oh My Zsh bundles hundreds of plugins and themes if you want more, at the cost of a slower shell start.

Mac terminal customization in Terminal.app

Open Terminal > Settings > Profiles. Pick a profile, then:

  • Font: Text > Font > Change, and choose your Nerd Font.
  • Colours: set background, text and ANSI colours by hand, or import a theme. Many schemes publish a .terminal file; use the gear menu below the profile list > Import.
  • Default: click Default with your profile selected so new windows use it.

On macOS 26 Tahoe and later, Terminal.app renders 24-bit colour and Powerline glyphs, so modern themes look as intended. On older versions it's limited to 256 colours.

In iTerm2

Open iTerm2 > Settings > Profiles.

  • Font: Text > Font. iTerm2 can also use a separate font for non-ASCII text.
  • Colours: Colors > Color Presets > Import, and pick an .itermcolors file. The iTerm2 Color Schemes collection has hundreds.
  • Window: Window sets transparency, blur and padding.
  • Keys: Keys > Presets > Natural Text Editing makes Option+Arrow move by word, as in other Mac apps.

In Lumen

Lumen keeps everything in one text file, ~/.config/lumen/config.toml, written with comments on first run. Changes apply when you save, to panes that are already open.

theme = "Tokyo Night"
font-family = "JetBrainsMono Nerd Font"
font-size = 14
background-opacity = 0.92
cursor-style = "beam"
notify-after = 10

[keys]
ctrl-t = "none"

Themes recolour the terminal and the window chrome together. There are 24 built in, 8 of them light, from Rosé Pine (default), Catppuccin and Tokyo Night to Gruvbox, Nord and Solarized. You can try them from the command palette (Cmd+Shift+P), add your own, or drop in any Ghostty theme file. theme = "light:Rosé Pine Dawn, dark:Rosé Pine" follows macOS's appearance. background-opacity gives a blurred, see-through background. Every key binding can be changed in [keys]. The full list is in the config docs.

Lumen's shell integration also changes how the prompt looks without touching ~/.zshrc: a grey or red mark appears beside each prompt, and failed ones are tinted red. It works alongside Starship.

Where to go next

If you've reached the limits of what Terminal.app can do, the best terminal for Mac compares the alternatives. For colour schemes in more depth, see Mac terminal themes.

Questions

How do I make my Mac terminal look better?

Install Starship for the prompt, a Nerd Font such as JetBrains Mono Nerd Font, and a colour theme, then add zsh-autosuggestions and zsh-syntax-highlighting. The steps above take about ten minutes.

How do I change the Mac terminal theme?

In Terminal.app, go to Settings > Profiles, import a .terminal file and click Default. In iTerm2, use Profiles > Colors > Color Presets > Import with an .itermcolors file.

Do I need Oh My Zsh?

No. Homebrew can install the two most useful plugins directly, and Starship handles the prompt. Oh My Zsh is handy if you want its large plugin set, but it adds start-up time.

Why do I see question marks or boxes in my prompt?

Your prompt uses icons the current font doesn't have. Install a Nerd Font and select it in your terminal's font settings.

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