mcpField
G
ghostty

ghostty

github.com/dicklesworthstone开发7362 次安装8 周前更新
代码仓库

关于 ghostty

ghostty 是用于从命令行控制和配置 Ghostty 终端模拟器的技能,适合需要管理终端窗口、标签页和外观设置的用户。它也涵盖启动选项与远程 SSH 的 terminfo 配置。

主要功能

  1. 01管理窗口、标签页和分屏
  2. 02调整字体大小并列出字体
  3. 03查看、验证和重载配置
  4. 04指定配置、命令和工作目录启动
  5. 05处理 SSH 远程 terminfo 问题

适用场景

  1. 01通过命令创建终端窗口和分屏
  2. 02调整字体或检查 Ghostty 配置
  3. 03指定目录或命令启动 Ghostty
  4. 04修复 SSH 会话中的终端字符问题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill ghostty

安装后在 Claude Code 中输入/ghostty确认已加载。

附带文件references/COMMANDS.mdreferences/REMOTE-TERMINFO.md

详细介绍

Ghostty CLI

**核心能力:**通过命令行控制和配置 Ghostty 终端模拟器。

快速开始

# CLI location (or symlinked as `ghostty`)
/Applications/Ghostty.app/Contents/MacOS/ghostty

# List available actions
ghostty +list-actions

# Check version
ghostty --version

精确提示词 — 窗口/标签页管理

# New window
ghostty +new-window

# New tab
ghostty +new-tab

# Splits
ghostty +new-split:right
ghostty +new-split:down

# Navigate splits
ghostty +goto-split:up
ghostty +goto-split:down
ghostty +goto-split:left
ghostty +goto-split:right

# Close current surface
ghostty +close-surface

# Toggle fullscreen
ghostty +toggle-fullscreen

精确提示词 — 字体管理

# Adjust font size
ghostty +increase-font-size:1
ghostty +decrease-font-size:1
ghostty +reset-font-size

# List available fonts
ghostty +list-fonts

精确提示词 — 配置

# Config file: ~/.config/ghostty/config

# Show current config
ghostty +show-config

# Validate config
ghostty +validate-config

# Reload config (live)
ghostty +reload-config

# List themes/keybinds
ghostty +list-themes
ghostty +list-keybinds

启动选项

# Start with specific config
ghostty --config-file=/path/to/config

# Start with command
ghostty -e "htop"

# Start in directory
ghostty --working-directory=/path/to/dir

基本命令

操作命令
新建窗口ghostty +new-window
新建标签页ghostty +new-tab
向右拆分ghostty +new-split:right
向下拆分ghostty +new-split:down
关闭ghostty +close-surface
重新加载配置ghostty +reload-config

故障排除:远程 SSH

**问题:**通过 SSH 按下数字键盘上的 Enter 键时,看到 [57414u 乱码。

快速修复:

infocmp -x xterm-ghostty | ssh user@server 'mkdir -p ~/.terminfo && tic -x -o ~/.terminfo -'

备用方案(无法访问 terminfo 时):

alias myserver='TERM=xterm-256color ssh user@myserver'

完整指南:REMOTE-TERMINFO.md


参考资料

主题参考资料
所有命令COMMANDS.md
远程 terminfo 设置REMOTE-TERMINFO.md

评论

支持 Markdown