Understanding Ghostty's Configuration File | Generated by AI

Home 2025.10

How the Ghostty Config File Works

Ghostty’s configuration file uses a simple, text-based format with key-value pairs in the style of key = value. It’s designed to be straightforward, letting you override only the defaults you care about—Ghostty ships with sensible built-in defaults for everything else, so a minimal or even empty config file works fine.

Quick Syntax Breakdown

Changes take effect immediately if you reload with the default keybinding (Cmd+Shift+, on macOS or Ctrl+Shift+, on Linux/Windows) or by running ghostty +reload-config.

To see all options and defaults, run ghostty +show-config --default --docs in your terminal.

What’s a Normal Config?

A “normal” config is often minimal—just tweaking a few things like font, colors, or padding for comfort. Ghostty’s defaults include JetBrains Mono as the font family (with built-in Nerd Font support), a clean background/foreground scheme, and no extra padding.

Here’s a simple, typical example for a dark-themed setup with a popular font, some padding, and basic keybindings. Save this as your config file:

# Basic dark theme with padding and custom font
background = 1e1e1e
foreground = f8f8f2
font-family = "JetBrains Mono Nerd Font"
font-size = 14

# Add some breathing room around the text
window-padding-x = 8
window-padding-y = 8

# Custom keybindings (overrides defaults if needed)
keybind = cmd+t=new_tab
keybind = cmd+w=close_tab
keybind = cmd+d=new_split:right

This keeps things lightweight while customizing the essentials. You can expand it with more colors (e.g., palette entries like color0 = 282a36) or themes from the docs.

Ghostty Configuration Docs


Back

x-ai/grok-4-fast

Donate