Skip to content

Instantly share code, notes, and snippets.

@nicky-zs
Created March 20, 2026 16:40
Show Gist options
  • Select an option

  • Save nicky-zs/60028352ead9ea20aec4b2048092e9cc to your computer and use it in GitHub Desktop.

Select an option

Save nicky-zs/60028352ead9ea20aec4b2048092e9cc to your computer and use it in GitHub Desktop.
我的Alacritty配置文件
# 导入配色方案 https://github.com/alacritty/alacritty-theme
[general]
import = ["alacritty-theme/themes/campbell.toml"]
# 窗口设置
[window]
dimensions = { columns = 140, lines = 40 } # 初始窗口大小
padding = { x = 2, y = 2 } # 内边距
decorations = "none"
[scrolling]
history = 100000
# 字体设置
[font]
size = 11.0
normal = { family = "Microsoft YaHei Mono", style = "Regular" }
bold = { family = "Microsoft YaHei Mono", style = "Bold" }
italic = { family = "Microsoft YaHei Mono", style = "Italic" }
bold_italic = { family = "Microsoft YaHei Mono", style = "Bold Italic" }
offset = { x = 0, y = 2 } # 增加行间距
glyph_offset = { x = 0, y = 1 }
# 光标样式 - 闪烁的细竖线
[cursor]
style = { shape = "Beam", blinking = "On" }
# 终端默认 Shell (WSL)
[terminal.shell]
program = "wsl.exe"
args = ["--cd", "~"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment