docs: add recommended ghostty config
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
ghostty.md
24
ghostty.md
@@ -14,13 +14,33 @@ brew install --cask ghostty
|
|||||||
|
|
||||||
## 設定
|
## 設定
|
||||||
|
|
||||||
設定檔位於 `~/.config/ghostty/config`,每行一個 `key = value`。改完按 `Cmd+Shift+,` reload 或重開 App。
|
設定檔位於 `~/.config/ghostty/config`,每行一個 `key = value`。改完按 `Cmd+Shift+,` reload 或重開 App。建議起手式:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# 字型
|
||||||
font-family = JetBrainsMono Nerd Font
|
font-family = JetBrainsMono Nerd Font
|
||||||
|
font-size = 14
|
||||||
|
|
||||||
|
# 主題(想換跑 `ghostty +list-themes` 預覽)
|
||||||
|
theme = catppuccin-mocha
|
||||||
|
|
||||||
|
# 外觀
|
||||||
|
background-opacity = 0.95
|
||||||
|
background-blur-radius = 20
|
||||||
|
window-padding-x = 10
|
||||||
|
window-padding-y = 10
|
||||||
|
cursor-style = bar
|
||||||
|
|
||||||
|
# macOS:讓左 Option 當 Alt(不然 tmux/vim 的 Alt 鍵沒反應)
|
||||||
|
macos-option-as-alt = left
|
||||||
|
|
||||||
|
# 體驗
|
||||||
|
copy-on-select = clipboard
|
||||||
|
mouse-hide-while-typing = true
|
||||||
|
window-save-state = always
|
||||||
```
|
```
|
||||||
|
|
||||||
搭配 [font-jetbrains-mono-nerd-font](jetbrains-mono-nerd-font.md) 使用可正確顯示 Nerd Font 圖示。
|
搭配 [font-jetbrains-mono-nerd-font](jetbrains-mono-nerd-font.md) 使用可正確顯示 Nerd Font 圖示。`background-blur-radius` 只在 `background-opacity` < 1 時生效。
|
||||||
|
|
||||||
不想手改設定檔,可用網頁版產生器視覺化調整、即時預覽再匯出:<https://ghostty.zerebos.com>(原始碼 <https://github.com/zerebos/ghostty-config>)。
|
不想手改設定檔,可用網頁版產生器視覺化調整、即時預覽再匯出:<https://ghostty.zerebos.com>(原始碼 <https://github.com/zerebos/ghostty-config>)。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user