警告
本文最后更新于 2023-11-03,文中内容可能已过时。
alacritty
比 terminator
更加强大。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
apt install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
apt-get update --fix-missing
sudo apt install git curl cargo
cd /tmp
git clone https://github.com/alacritty/alacritty.git
cd alacritty/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
rustup override set stable
sudo apt install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev python3
cargo build --release
cargo build --release
sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install extra/linux/Alacritty.desktop
sudo update-desktop-database
|
处理 tmux 问题
1
2
3
4
5
6
|
## https://github.com/alacritty/alacritty/issues/2487
export TERM=xterm-256color
## 或者尝试使用以下配置
export TERM=xterm
tmux kill-server
|
处理 nvim 颜色显示问题
1
2
3
|
## https://github.com/alacritty/alacritty/issues/3354
set-option -ga terminal-overrides ",alacritty:Tc"
set -g default-terminal "alacritty"
|
color issues
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
## tmux.conf
## alacrrity: https://github.com/alacritty/alacritty/issues/3354
set-option -ga terminal-overrides ",alacritty:Tc"
set -g default-terminal "alacritty"
## https://www.reddit.com/r/tmux/comments/onom6t/nvim_colors_change_if_on_tmux_on_alacritty/
set -g default-terminal 'xterm-256color'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
## .zshrc
## alacritty
export TERM=xterm-256color
## .bashrc
## colo
## .zshrc
export TERM=xterm-256color
## .bashrc
export TERM=xterm-256color
|
从 yaml 转换到 toml
1
2
3
4
|
alacritty migrate -c xxx.yaml
## 或者批量转换
find . -type f -name '*.yaml' | xargs -I {} alacritty migrate -c {}
|
Ref