ghostty

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Ghostty Skill

Ghostty 操作指南

Use the
ghostty
CLI to control and configure the Ghostty terminal emulator.
使用
ghostty
CLI控制和配置Ghostty终端模拟器。

CLI Location

CLI 位置

bash
/Applications/Ghostty.app/Contents/MacOS/ghostty
Or if symlinked:
ghostty
bash
/Applications/Ghostty.app/Contents/MacOS/ghostty
如果已创建符号链接,可直接使用:
ghostty

Actions (IPC Commands)

操作指令(IPC 命令)

Ghostty supports actions via
+action
flag. These control the running instance.
List available actions:
bash
ghostty +list-actions
Create new window:
bash
ghostty +new-window
Create new tab:
bash
ghostty +new-tab
Create splits:
bash
ghostty +new-split:right
ghostty +new-split:down
Navigate 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:right
Close current surface:
bash
ghostty +close-surface
Toggle fullscreen:
bash
ghostty +toggle-fullscreen
Reload configuration:
bash
ghostty +reload-config
Ghostty 支持通过
+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-config

Font Management

字体管理

Increase/decrease font size:
bash
ghostty +increase-font-size:1
ghostty +decrease-font-size:1
Reset font size:
bash
ghostty +reset-font-size
增大/减小字体大小:
bash
ghostty +increase-font-size:1
ghostty +decrease-font-size:1
重置字体大小:
bash
ghostty +reset-font-size

Configuration

配置

Config file location:
~/.config/ghostty/config
Show current config:
bash
ghostty +show-config
List available themes:
bash
ghostty +list-themes
List available fonts:
bash
ghostty +list-fonts
List keybinds:
bash
ghostty +list-keybinds
配置文件位置:
~/.config/ghostty/config
查看当前配置:
bash
ghostty +show-config
列出所有可用主题:
bash
ghostty +list-themes
列出所有可用字体:
bash
ghostty +list-fonts
列出快捷键绑定:
bash
ghostty +list-keybinds

Launch Options

启动选项

Start with specific config:
bash
ghostty --config-file=/path/to/config
Start 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/dir

Debugging

调试

Check version:
bash
ghostty --version
Validate config:
bash
ghostty +validate-config
查看版本:
bash
ghostty --version
验证配置文件:
bash
ghostty +validate-config