1
1
Fork 0

ssh: use xterm-256color terminfo

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-31 22:29:08 -06:00
parent 0e7995181d
commit 5abd7574c9
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -10,7 +10,15 @@ in {
config = mkIf cfg.enable {
home-manager.users.${config.custom.username} = {
programs.ssh.enable = true;
programs.ssh = {
enable = true;
# https://ghostty.org/docs/help/terminfo#configure-ssh-to-fall-back-to-a-known-terminfo-entry
extraConfig = ''
Host *
SetEnv TERM=xterm-256color
'';
};
# Work around FHS permissions
# https://github.com/nix-community/home-manager/issues/322#issuecomment-1856128020