From ce7a544b92c5d22db028f5f3fe0d82e260a9ffd7 Mon Sep 17 00:00:00 2001 From: Alexei Robyn Date: Wed, 11 May 2016 22:16:38 +1000 Subject: [PATCH] nixos: ensure TERMINFO is set before user shells are run --- nixos/modules/config/shells-environment.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/config/shells-environment.nix b/nixos/modules/config/shells-environment.nix index 9642981803bf..89b8a04b5e7c 100644 --- a/nixos/modules/config/shells-environment.nix +++ b/nixos/modules/config/shells-environment.nix @@ -150,6 +150,10 @@ in 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 # unnecessary, but it allows changes to session variables to take # effect without restarting the session (e.g. by opening a new