Ghostty 安装全面评测 | AI生成和翻译

Home 2026.05

以下是完整的回顾:

Ghostty 安装 —— 全面评测

版本与来源

安装方法

sudo add-apt-repository ppa:mkasberg/ghostty-ubuntu sudo apt-get install ghostty

后续通过 apt 自动更新。

包内容

区域:二进制 详情:/usr/bin/ghostty(27 MB,GTK4 + OpenGL 渲染器,GPU 加速) ──────────────────────────────────────── 区域:共享库 详情:libghostty-vt.so(VT 终端 API 库,C 头文件位于 /usr/include/ghostty/) ──────────────────────────────────────── 区域:依赖项 详情:GTK4、libadwaita、libfontconfig、freetype、harfbuzz、oniguruma、libwayland、X11 ──────────────────────────────────────── 区域:主题 详情:350+ 内置主题位于 /usr/share/ghostty/themes/(Catppuccin、Nord、TokyoNight、Gruvbox、Dracula、Solarized 等) ──────────────────────────────────────── 区域:Shell 集成 详情:bash、zsh、fish、elvish、nushell —— preexec 钩子、集成脚本 ──────────────────────────────────────── 区域:编辑器支持 详情:vim、neovim(compiler、ftdetect、ftplugin、syntax)、bat 语法高亮 ──────────────────────────────────────── 区域:补全 详情:bash、fish、zsh ──────────────────────────────────────── 区域:DBus 详情:D-Bus 激活的服务文件 ──────────────────────────────────────── 区域:systemd 详情:用户服务:app-com.mitchellh.ghostty.service ──────────────────────────────────────── 区域:桌面入口 详情:com.mitchellh.ghostty.desktop —— 应用菜单启动器 ──────────────────────────────────────── 区域:Nautilus 详情:Python 扩展,用于右键菜单“Open in Ghostty” ──────────────────────────────────────── 区域:KIO 详情:KDE 服务菜单集成 ──────────────────────────────────────── 区域:图标 详情:16×16 至 1024×1024,包括 HiDPI 变体 ──────────────────────────────────────── 区域:手册页 详情:ghostty.1(用户命令)、ghostty.5(配置文件格式) ──────────────────────────────────────── 区域:语言 详情:25+ 种语言翻译 ──────────────────────────────────────── 区域:terminfo 详情:ghostty 和 xterm-ghostty 条目(正确的终端类型检测) ──────────────────────────────────────── 区域:Appstream 详情:com.mitchellh.ghostty.metainfo.xml —— 软件中心元数据

构建详情

配置文件 Ghostty 使用 INI 风格的配置文件,位于 ~/.config/ghostty/config(首次启动时自动创建,若不存在)。关键配置模式:

ini theme = Catppuccin Mocha font-size = 13 font-family = JetBrains Mono background-opacity = 0.92 window-padding-x = 4 window-padding-y = 4

备注


Back Donate