17.03.2022 – Linux/Alacritty_only_partitially_shows _colors.md

Alacritty only partially shows colors in SSH session

Set COLORTERM=truecolor. For example by adding the following to .bashrc

1
2
3
4
5
if [[ -v SSH_CONNECTION ]]; then
        if [[ "$TERM" == "alacritty" ]]; then
                export COLORTERM=truecolor
        fi
fi

Alternatively by passing down the variable with ssh -o SendEnv=COLORTERM, this needs to be explicitly allowed by the server though.