文档

Ghostty

Ghostty 终端模拟器

Settings

配置文件位置:~/Library/Application Support/com.mitchellh.ghostty/config.ghostty

ini
font-family = "FiraCode Nerd Font"font-family-bold = "FiraCode Nerd Font"font-family-italic = "FiraCode Nerd Font"font-family-bold-italic = "FiraCode Nerd Font"font-size = 16
font-feature = caltfont-feature = liga
theme = light:vitesse-light,dark:vitesse-dark
custom-shader = ~/.config/ghostty/shaders/cursor_warp.glslcustom-shader = ~/.config/ghostty/shaders/ripple_cursor.glsl
custom-shader-animation = always

Theme

安装

sh
git clone https://github.com/hamlim/vitesse-ghostty-theme.git ~/.config/ghostty/themes

Shader

安装

sh
git clone https://github.com/sahaj-b/ghostty-cursor-shaders.git ~/.config/ghostty/shaders

重置窗口大小

删除 plist 中的窗口位置缓存,然后重启 Ghostty:

sh
defaults delete com.mitchellh.ghostty NSWindowLastPosition

SSH Terminfo

解决 SSH 连接远程服务器时 'xterm-ghostty': unknown terminal type. 的问题:

sh
infocmp xterm-ghostty | ssh user@host 'tic -x -'