AKTK-Lab

Back

TOML是一种简单易读的配置文件语法,Alacritty在新版本已经把配置从yaml语言移到TOML了。

安装 Alacritty#

Windows: 前往仓库的Release页面下载.msi可执行文件

UNIX: 自行使用系统对应的包管理器命令安装,不要使用 cargo 给自己找麻烦

建立配置文件#

Windows 路径: %APPDATA%/alacritty/alacritty.toml

UNIX 路径: $HOME/.config/alacritty/alacritty.toml

配置#

使用vscode编辑时安装TOML Language Support获得语法高亮

Reference#

  1. 配置指南 Alacritty - TOML configuration file format
  2. TOML语法wiki
  3. Alacritty-Theme
  4. tokyo-night-alacritty-theme
使用TOML配置Alacritty(>=0.13.2)
https://astro-pure.js.org/blog/unixporn-alacritty
Author Akatsuki
Published at April 28, 2024