0x00 关于
iTerm2 用时间长了,启动非常慢,寻找一个平替。
于是找到 ghostty ,声称使用zig开发,基于GPU进行渲染。
主打一个快捷,这里记录最小化(美化)配置。
0x01 应用安装
brew install --cask ghostty
brew install --cask font-meslo-lg-nerd-font
brew install starship
上述安装完成后,让starship生效,执行下面指令:
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
0x02 Starship 配置
直接使用官方预设配置
starship preset gruvbox-rainbow -o ~/.config/starship.toml
0x03 更新Ghotty配置文件
- 使用热键:
Cmd+,直接打开配置文件
# Embark , Matrix, Rose Pine, Ubuntu
theme = Embark
window-padding-x = 10
window-padding-y = 10
background-opacity = 0.95
background-blur-radius = 20
font-family = "Meslo LG M Nerd Font"
font-size = 13
cursor-style = bar
shell-integration = zsh
保存后,使用Cmd+Shfit+, 进行热更新。
- 关于主题
在命令行中使用ghostty +list-themes可查看自带的 theme 名称和效果
0x04 启动效果

image.png
0x05 常用热键
-
Cmd+d: 左右分屏 -
Cmd+Shift+d: 上下分屏 -
Cmd+,: 实时编辑配置表 -
Cmd+Shift+,: 更新配置表