37 lines
932 B
Markdown
37 lines
932 B
Markdown
# Ghostty 文件
|
|
|
|
GPU 加速、原生的終端機模擬器。版本 1.3.1。
|
|
|
|
參考:<https://ghostty.org>
|
|
|
|
## 安裝
|
|
|
|
```sh
|
|
brew install --cask ghostty
|
|
```
|
|
|
|
`xterm-ghostty` terminfo 隨 App 一併安裝,不用另外處理。
|
|
|
|
## 設定
|
|
|
|
設定檔位於 `~/.config/ghostty/config`,每行一個 `key = value`。改完按 `Cmd+Shift+,` reload 或重開 App。
|
|
|
|
```
|
|
font-family = JetBrainsMono Nerd Font
|
|
```
|
|
|
|
搭配 [font-jetbrains-mono-nerd-font](jetbrains-mono-nerd-font.md) 使用可正確顯示 Nerd Font 圖示。
|
|
|
|
不想手改設定檔,可用網頁版產生器視覺化調整、即時預覽再匯出:<https://ghostty.zerebos.com>(原始碼 <https://github.com/zerebos/ghostty-config>)。
|
|
|
|
## 常用快捷鍵
|
|
|
|
| 快捷鍵 | 說明 |
|
|
|------|------|
|
|
| `Cmd+Shift+,` | reload 設定檔 |
|
|
| `Cmd+N` | 開新視窗 |
|
|
| `Cmd+T` | 開新分頁 |
|
|
| `Cmd+D` | 垂直分割 |
|
|
| `Cmd+Shift+D` | 水平分割 |
|
|
| `Cmd+,` | 開啟設定檔 |
|