LoginSignup
1
0

More than 1 year has passed since last update.

alacritty + tmux で true color対応したい

Posted at

よく見かける設定例

同じような環境で使っている人の設定ファイルを見ると、下記のような設定が多く見られる

alacritty.yml
env:
  TERM: xterm-256color
.tmux.conf
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"

確かに、これでもtrue color表示できるけど、$TERMをalacrittyに設定したい

そもそもtrue color表示できているかの確認

下記コマンドを実行

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh | bash

true color表示できている場合

こんな感じで継ぎ目がなく表示されればtrue color表示できている
Screen Shot 2022-04-17 at 0.58.30.png

true color表示できていない場合

対応できていない場合は、こんな感じに継ぎ目が明らかになる
Screen Shot 2022-04-17 at 0.59.21.png

結論

下記設定でtrue color対応できる

alacritty.yml
env:
  TERM: alacritty
.tmux.conf
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",alacritty:RGB"

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0