Ghostty配置说明

Ghostty下载地址:https://ghostty.org/

Ghostty配置创作者Github地址:https://github.com/BruceLanLan/bruceblue-ghostty-config/blob/main/config

也可以直接复制下面的内容:

# ============================================
# Bruce's Ghostty Config - 2026 Claude 极致稳定版
# 作者:BruceBlue
# 专为 Claude Code 优化,零报错、左右分屏、一键放大
# 重载快捷键:Cmd + Shift + ,
# ============================================

# --- Typography ---
font-family = "Maple Mono NF CN"
font-size = 14
adjust-cell-height = 2

# --- Theme and Colors ---
theme = Catppuccin Mocha

# --- Window and Appearance ---
background-opacity = 0.85
background-blur-radius = 30
macos-titlebar-style = transparent
window-padding-x = 10
window-padding-y = 8
window-save-state = always
window-theme = auto

# --- Cursor ---
cursor-style = bar
cursor-style-blink = true
cursor-opacity = 0.8

# --- Mouse ---
mouse-hide-while-typing = true
copy-on-select = clipboard

# --- Quick Terminal ---
quick-terminal-position = top
quick-terminal-screen = mouse
quick-terminal-autohide = true
quick-terminal-animation-duration = 0.15

# --- Security ---
clipboard-paste-protection = true
clipboard-paste-bracketed-safe = true

# --- Shell Integration ---
shell-integration = zsh

# --- Claude 专属优化 ---
# initial-command = /opt/homebrew/bin/claude   # 装好claude-code后再取消注释
initial-window = true
quit-after-last-window-closed = true
notify-on-command-finish = always

# --- Performance ---
scrollback-limit = 25000000

# --- 基础分屏(左右添加屏幕)---
keybind = cmd+d=new_split:right
keybind = cmd+shift+enter=toggle_split_zoom
keybind = cmd+shift+f=toggle_split_zoom

Maple字体下载:https://github.com/subframe7536/maple-font/releases

Starship下载地址:https://starship.rs/guide/

也可以直接用这个命令安装:

curl -sS https://starship.rs/install.sh | sh

各种配置获取:https://starship.rs/zh-CN/presets/

Nerd字体下载:https://www.nerdfonts.com/