windows的alacritty配置文件存放在: %APPDATA%\alacritty\alacritty.toml
文件内容基本可以参考我的linux配置:https://github.com/gxt-kt/dotfiles/blob/master/alacritty/.config/alacritty/alacritty.toml
只需要额外注意以下内容:
因为默认不能使用
<C-/>或者说是<C-_>快捷键,所以在配置里已经加入了plaintext[keyboard] bindings = [ { key = "Slash", mods = "Control", chars = "\u001f" } ]如果需要alacritty启动的时候自动启动
wsl,那么配置加入以下内容:[terminal.shell] # default is "powershell" in windows ( https://alacritty.org/config-alacritty.html#terminal ) program = "C:\\Users\\gxt_kt\\AppData\\Local\\Microsoft\\WindowsApps\\ubuntu2404.exe"注意修改你的用户名和对应的wsl可执行文件路径
修改alacritty光标颜色
plaintext[colors.cursor] cursor = "#ff0000"