Ghostty
Ghostty 是一个终端模拟器。本页介绍如何安装主题和光标 shader、编写配置文件,以及处理窗口大小和 SSH terminfo 问题。
安装#
配置文件引用的主题和 shader 需要先克隆到 ~/.config/ghostty 下。
安装主题#
安装光标 shader#
配置#
配置文件位于 ~/Library/Application Support/com.mitchellh.ghostty/config.ghostty。在其中设置字体、主题和光标 shader:
使用#
重置窗口大小#
删除 plist 中的窗口位置缓存,然后重启 Ghostty:
故障排查#
SSH 远程提示 unknown terminal type#
SSH 连接远程服务器时报错 'xterm-ghostty': unknown terminal type.。原因是远程主机上没有 xterm-ghostty 的 terminfo。
把本机的 terminfo 安装到远程主机,user@host 换成远程主机的用户名和地址:
参考#
- vitesse-ghostty-theme:Ghostty 的 Vitesse 主题。
- ghostty-cursor-shaders:Ghostty 的光标 shader 合集。