Merge pull request #15384 from Shados/fix-preshell-terminfo
nixos: ensure TERMINFO is set before user shells are run
This commit is contained in:
commit
4e9833d9e8
@ -150,6 +150,10 @@ in
|
|||||||
|
|
||||||
system.build.binsh = pkgs.bashInteractive;
|
system.build.binsh = pkgs.bashInteractive;
|
||||||
|
|
||||||
|
# Ensure TERMINFO is set appropriately *before* user shells are run,
|
||||||
|
# as they may depend on it
|
||||||
|
environment.sessionVariables.TERMINFO = "/run/current-system/sw/share/terminfo";
|
||||||
|
|
||||||
# Set session variables in the shell as well. This is usually
|
# Set session variables in the shell as well. This is usually
|
||||||
# unnecessary, but it allows changes to session variables to take
|
# unnecessary, but it allows changes to session variables to take
|
||||||
# effect without restarting the session (e.g. by opening a new
|
# effect without restarting the session (e.g. by opening a new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user