ghostty
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGhostty Skill
Ghostty 操作指南
Use the CLI to control and configure the Ghostty terminal emulator.
ghostty使用 CLI控制和配置Ghostty终端模拟器。
ghosttyCLI Location
CLI 位置
bash
/Applications/Ghostty.app/Contents/MacOS/ghosttyOr if symlinked:
ghosttybash
/Applications/Ghostty.app/Contents/MacOS/ghostty如果已创建符号链接,可直接使用:
ghosttyActions (IPC Commands)
操作指令(IPC 命令)
Ghostty supports actions via flag. These control the running instance.
+actionList available actions:
bash
ghostty +list-actionsCreate new window:
bash
ghostty +new-windowCreate new tab:
bash
ghostty +new-tabCreate splits:
bash
ghostty +new-split:right
ghostty +new-split:downNavigate splits:
bash
ghostty +goto-split:previous
ghostty +goto-split:next
ghostty +goto-split:up
ghostty +goto-split:down
ghostty +goto-split:left
ghostty +goto-split:rightClose current surface:
bash
ghostty +close-surfaceToggle fullscreen:
bash
ghostty +toggle-fullscreenReload configuration:
bash
ghostty +reload-configGhostty 支持通过参数执行操作指令,用于控制运行中的实例。
+action列出所有可用操作指令:
bash
ghostty +list-actions新建窗口:
bash
ghostty +new-window新建标签页:
bash
ghostty +new-tab创建分屏:
bash
ghostty +new-split:right
ghostty +new-split:down切换分屏:
bash
ghostty +goto-split:previous
ghostty +goto-split:next
ghostty +goto-split:up
ghostty +goto-split:down
ghostty +goto-split:left
ghostty +goto-split:right关闭当前界面:
bash
ghostty +close-surface切换全屏模式:
bash
ghostty +toggle-fullscreen重新加载配置:
bash
ghostty +reload-configFont Management
字体管理
Increase/decrease font size:
bash
ghostty +increase-font-size:1
ghostty +decrease-font-size:1Reset font size:
bash
ghostty +reset-font-size增大/减小字体大小:
bash
ghostty +increase-font-size:1
ghostty +decrease-font-size:1重置字体大小:
bash
ghostty +reset-font-sizeConfiguration
配置
Config file location:
~/.config/ghostty/configShow current config:
bash
ghostty +show-configList available themes:
bash
ghostty +list-themesList available fonts:
bash
ghostty +list-fontsList keybinds:
bash
ghostty +list-keybinds配置文件位置:
~/.config/ghostty/config查看当前配置:
bash
ghostty +show-config列出所有可用主题:
bash
ghostty +list-themes列出所有可用字体:
bash
ghostty +list-fonts列出快捷键绑定:
bash
ghostty +list-keybindsLaunch Options
启动选项
Start with specific config:
bash
ghostty --config-file=/path/to/configStart with command:
bash
ghostty -e "htop"Start in directory:
bash
ghostty --working-directory=/path/to/dir使用指定配置启动:
bash
ghostty --config-file=/path/to/config启动时执行指定命令:
bash
ghostty -e "htop"在指定目录启动:
bash
ghostty --working-directory=/path/to/dirDebugging
调试
Check version:
bash
ghostty --versionValidate config:
bash
ghostty +validate-config查看版本:
bash
ghostty --version验证配置文件:
bash
ghostty +validate-config