AGENT SKILL

Ghostty 终端配置管理

ghostty

配置和管理 Ghostty 终端模拟器设置。用于修改 ghostty 配置、验证配置、检查窗口设置、主题、字体、按键绑定,或排查 ghostty 启动行为问题。

License 许可
MIT
所属仓库
whilp/world
最近更新
2026-11-14
Stars
★ 10
Forks
3

01 前言 Front Matter

name
ghostty
description
Configure and manage Ghostty terminal emulator settings. Use when modifying ghostty config, validating configuration, checking window settings, themes, fonts, keybindings, or troubleshooting ghostty startup behavior.
allowed-tools
[ "Read", "Edit", "Bash" ]

03 SKILL.md 正文

ghostty

Terminal emulator configuration and management.

Config location

  • user config: ~/.config/ghostty/config
  • terminfo: ~/.config/ghostty/term.tic
  • binary: /Applications/Ghostty.app/Contents/MacOS/ghostty

Common actions

validate config

ghostty +validate-config

Validates configuration syntax and reports errors for unknown fields or invalid values.

show current config

ghostty +show-config

Displays the effective configuration, including defaults and user overrides.

list available options

Common configuration categories:

  • window: window-decoration, window-theme, maximize, fullscreen
  • fonts: font-family, font-size, font-style
  • appearance: background-opacity, theme, cursor-style
  • behavior: shell-integration, mouse-hide-while-typing, clipboard-write
  • macos: macos-option-as-alt, macos-non-native-fullscreen
  • keybindings: keybind = <key>=<action>

other useful commands

ghostty +list-fonts          # show available fonts
ghostty +list-themes         # show available themes
ghostty +list-keybinds       # show current keybindings
ghostty +list-actions        # show available actions for keybindings
ghostty +edit-config         # open config in editor

Config format

Plain text file with key = value syntax. Comments start with #.

# window settings
window-decoration = false
window-theme = "dark"
maximize = true

# fonts and appearance
font-size = 14
theme = "GitHub Dark Colorblind"
cursor-style = "block"

# keybindings
keybind = cmd+v=paste_from_clipboard
keybind = cmd+c=copy_to_clipboard

Common settings

window modes

  • maximize = true - start window maximized (fills screen, not fullscreen)
  • fullscreen = true - start window in fullscreen mode
  • window-decoration = false - hide window title bar
  • macos-non-native-fullscreen = "padded-notch" - fullscreen with notch padding

shell integration

  • shell-integration = "zsh" - enable shell integration for zsh
  • terminfo must be installed: tic -x ~/.config/ghostty/term.tic

keybindings

Format: keybind = <modifier>+<key>=<action>

Modifiers:

  • cmd / super - command key
  • ctrl - control key
  • shift - shift key
  • alt / option - option key

Use unbind to remove default bindings:

keybind = cmd+t=unbind

Troubleshooting

config validation fails

Run ghostty +validate-config to see specific error messages. Common issues:

  • unknown field names (check spelling, refer to documentation)
  • invalid values for enum types
  • missing quotes around string values with spaces

changes not taking effect

  • restart ghostty completely (not just new window)
  • check ghostty +show-config to verify effective configuration
  • ensure no typos in config file path

PATH setup

Already added to ~/.zshenv:

path=(
  "/Applications/Ghostty.app/Contents/MacOS"
  $path
)

Documentation

Official docs: https://ghostty.org/docs

04 同仓库更多 Skills

whilp
whilp/world

CleanShot 截图与 OCR 识别

screenshot

使用 CleanShot X 截图、屏幕录制、滚动截图和 OCR 文字识别。当用户请求截图、捕获、屏幕录制、OCR、文字提取或图像标注时使用。

普通用户屏幕截图与OCR识别
★ 10
whilp
whilp/world

Neovim 配置与构建交互

nvim

与 Neovim 配置和构建系统交互。

软件开发工程师开发环境与工具链管理
★ 10
whilp
whilp/world

Claude Code 技能编写指南

meta

编写和改进 Claude Code 技能的指南。用于创建新技能、调试技能为何未激活,或改进技能描述和结构。

AI 工程师插件与技能管理
★ 10
whilp
whilp/world

Karabiner 按键重映射配置

karabiner

配置和管理 Karabiner-Elements 按键重映射。用于修改 karabiner.json、添加按键重映射、创建复杂修改、管理配置方案、设置变量,或排查按键绑定问题。

软件开发工程师桌面自动化与界面操作
★ 10
whilp
whilp/world

Hammerspoon 自动化配置

hammerspoon

配置和管理 Hammerspoon 自动化、应用启动和窗口切换。用于处理 ~/.config/hammerspoon 配置文件、添加按键绑定、修改 leader 模态,或排查 Hammerspoon 功能问题。窗口管理由 AeroSpace 负责。

软件开发工程师桌面自动化与界面操作
★ 10
whilp
whilp/world

GitHub Actions 工作流

gh-workflow

触发并监控 GitHub Actions 工作流、CI/CD 流水线与自动化构建。当运行工作流、触发 CI、通过 GitHub Actions 部署、下载构建产物,或在 github.com 上检查工作流状态时使用。

SRE 工程师部署与发布管理
★ 10