ghostty
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.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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-configto 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
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!