feat(man): Define env vars independently of shell

This commit is contained in:
punkfairie 2024-10-30 20:40:39 -07:00
parent 8d1dc2baef
commit 95f1f232be
Signed by: punkfairie
GPG key ID: 01823C057725C266

View file

@ -1,14 +1,8 @@
{ {...}: {
lib,
config,
...
}: {
programs.man.enable = true; programs.man.enable = true;
programs.fish = lib.mkIf config.programs.fish.enable { home.sessionVariables = {
interactiveShellInit = '' MANWIDTH = "80";
set -gx MANWIDTH 80 MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
set -gx MANPAGER 'nvim +NoNeckPain "+set nowrap" +Man!'
'';
}; };
} }