Ghostty config

From edmundmiller/dotfiles · View interactive version

Ghostty config is an AI agent skill from the GitHub repository edmundmiller/dotfiles. Use when configuring Ghostty terminal emulator, working with ghostty config files, or looking up Ghostty settings and options.

How to use this skill

Skill file

Ghostty Terminal Configuration

Guide for configuring Ghostty terminal emulator with local documentation access.

When to Use This Skill

Use this skill when:

Quick Reference

Access Local Documentation

Ghostty includes comprehensive built-in documentation:

Full configuration reference with inline docs:

ghostty +show-config --default --docs

List available fonts:

ghostty +list-fonts

Search for specific config options:

ghostty +show-config --default --docs | grep -A 10 "keyword"

Configuration File Location

In this dotfiles repository, Ghostty config is managed at:

Common Configuration Patterns

Font configuration:

# List available fonts first
ghostty +list-fonts

# Then configure in config file
font-family = Maple Mono NF
font-size = 14

Theme/Colors:

# Search for color-related options
ghostty +show-config --default --docs | grep -i "color"

Key bindings:

# Search for keybind options
ghostty +show-config --default --docs | grep -i "keybind"

Searching Documentation

Find specific option documentation:

# Example: Find all font-related options
ghostty +show-config --default --docs | grep -B 2 -A 20 "^font-"

Search by keyword:

# Example: Find clipboard options
ghostty +show-config --default --docs | grep -i "clipboard" -A 10

List all available options:

# Get just the config keys without docs
ghostty +show-config --default | grep "^[a-z]" | cut -d= -f1

Validation

Test configuration syntax:

# Ghostty will report errors on startup
ghostty --config-file=path/to/config

View current configuration:

# Shows active config (after applying defaults + user config)
ghostty +show-config

Common Configuration Categories

Key categories (use documentation search for complete details):

Example: Adding a Font

  1. List available fonts:

```bash

ghostty +list-fonts | grep -i "JetBrains"

```

  1. Check font configuration docs:

```bash

ghostty +show-config --default --docs | grep -A 40 "^font-family"

```

  1. Add to config:

```

font-family = JetBrains Mono

font-family = Apple Color Emoji # Fallback for emoji

font-size = 14

```

  1. Reload config (Ghostty auto-reloads, or use ctrl+c>r keybind if configured)

Example: Custom Keybindings

  1. Find keybind documentation:

```bash

ghostty +show-config --default --docs | grep -B 10 -A 30 "^keybind ="

```

  1. Keybind syntax:

```

keybind = [prefix:]trigger=action[:parameter]

```

  1. Add custom bindings:

```

keybind = ctrl+shift+c=copy_to_clipboard

keybind = ctrl+shift+v=paste_from_clipboard

keybind = ctrl+c>v=new_split:right

```

Example: Configuring Bell

  1. Search bell documentation:

```bash

ghostty +show-config --default --docs | grep -A 50 "^# Bell features"

```

  1. Available bell features:
  1. Configure bell:

```

# Only show title emoji, no dock bounce

bell-features = no-attention,title

```

Configuration Format

Basic syntax:

# Comments start with hash
key = value

# Boolean values
some-feature = true
other-feature = false

# Multiple values - repeat the key
font-family = JetBrains Mono
font-family = Apple Color Emoji

# Empty value = use default
font-family =

No quotes needed for most values (unlike TOML/YAML):

# Correct
font-family = JetBrains Mono

# Also works, but unnecessary
font-family = "JetBrains Mono"

Keybind prefixes:

Tips

Troubleshooting

Config not loading:

Font not found:

Colors not working:

Keybindings not working:

Additional Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.