nixos-shell
nixos-shell copied to clipboard
Inheriting TERM variable leads to broken terminal
nixos-shell will inherit the TERM variable from the user environment which leads to a broken terminal in some situations.
For example, I have TERM=rxvt-unicode-256color, which is inherited and leads to a broken terminal. Probably because rxvt_unicode is not in the system packages?
Does inheriting $TERMINFO_DIRS fix this issue?
No, it's still broken inheriting that variable.
I have:
echo $TERMINFO_DIRS
/home/joerg/.nix-profile/share/terminfo
I assume it has your system profile in there? So maybe something like TERMINFO_DIRS=$(realpath $TERMINFO_DIRS) could fix it.
One would need to add all terminals to environment.systemPackages to fix this properly.