# 常用配置示例

## 先确认当前界面支持什么

本页使用正式 GPUI 路径已读取的启动窗口尺寸。字体、主题、默认 Shell 和快捷键请先使用界面设置。通用解析器接受的 Lua 字段，不一定被 GPUI 窗口使用。

## 设置窗口行列

```lua
local pebrel = require 'pebrel'
local config = pebrel.config_builder()

config.window = {
  dimensions = { columns = 120, lines = 32 }
}

return config
```

先执行 `pebrel config check`，再重新启动应用窗口核对。已有配置只需合并对应字段，不要重复创建配置对象或添加多个 `return config`。

## 在命令行检查另一份配置

```sh
pebrel config check --config-file ./pebrel.lua
```

检查只证明配置可解析，不验证应用设置覆盖、系统字体安装或新窗口的最终布局。

## 调整其他日常设置

- 字体、主题和背景：见[调整外观](/docs/appearance/)。
- 默认 Shell 与启动目录：见[Shell 与启动目录](/docs/shells/)。
- 快捷键：见[快捷键速查](/docs/keyboard/)。

配置路径与当前生效范围见[配置指南](/docs/configuration/)。

---
Source: Kuddev/pebrel PR #291, WilliamWang1721 and Pebrel contributors.
Adapted for pebrel.com. License: GPL-3.0.
