SuperAPI AI 工具集

ghostty

通用与其它

查看项目

更新于 10-16 09:47

技能介绍

用途:管理 Ghostty 终端模拟器的配置与命令行操作,包括主题、字体、键位设置,配置文件校验,脚本打开新窗口,以及排查渲染问题。不适用于其他终端模拟器或非终端配置任务。

主要能力:运行 ghostty --version 查看版本;ghostty +list-actions 列出键位动作;ghostty +list-themes 打开交互式主题预览(--color=dark 可筛选);ghostty +list-fonts 列出字体;ghostty +list-keybinds 列出键位(加 --default 仅显示默认值);ghostty +list-colors 列出配置可用颜色;ghostty +show-config 显示配置(加 --default --docs 显示所有选项);ghostty +validate-config 校验配置;ghostty +edit-config 用 $VISUAL 或 $EDITOR 编辑配置;ghostty +new-window 通过 IPC 新建窗口;ghostty -e htop 运行命令,-e 之后的参数即为命令;ghostty --working-directory=/path 设置工作目录;ghostty --config-file=/path 加载额外配置;ghostty +ssh-cache 管理 SSH terminfo 缓存;ghostty +show-face <codepoint> 查看某 Unicode 码点由哪个字体渲染;ghostty +crash-report 查看和管理崩溃报告。

使用方式与限制:窗口、标签与分屏管理是配置文件中用 keybind = 键位=动作 设置的键位动作,不是 CLI 命令;不要运行 ghostty +new-tab 或 +new-split。macOS 未创建符号链接时需用 /Applications/Ghostty.app/Contents/MacOS/ghostty 完整路径。+new-window 依赖 D-Bus IPC,仅在 Linux/GTK 可用。编辑配置后用 reload_config 键位动作重载。--config-file 应使用绝对路径。可先运行 ghostty +help 查看 CLI 动作,+list-actions 查看键位动作。