Author: Chris Bracken <firstname.lastname@example.org>
Date: Wed, 26 May 2021 23:55:17 -0700
Set TERM=xterm-256color in Alacritty
Alacritty uses terminal type 'alacritty' if it exists in the host's
terminfo database, otherwise it falls back to xterm-256color. This is
problematic when terminal type 'alacritty' exists on the local machine
but not a remote host that you're ssh-ing into, in which case, the
connection needs to be made as:
TERM=xterm-256color ssh email@example.com
Since xterm-256color covers all my needs, as far as I know, and since
alacritty isn't common enough to be included in terminfo files for most
operating systems, just default to xterm-256colors for now.
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
@@ -1,3 +1,11 @@
+ # By default, alacritty checks the local terminfo database and uses terminal
+ # type `alacritty` if present, otherwise it falls back to `xterm-256color`.
+ # That said, most remote systems don't include `alacritty` in their terminfo
+ # database, and `xterm-256color` covers most of what we need, so we set that
+ # by default.
+ TERM: xterm-256color