feat(less): Set env vars independently of shell

This commit is contained in:
punkfairie 2024-10-30 20:22:10 -07:00
parent 90d264cc44
commit 8d1dc2baef
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 4 additions and 10 deletions

View file

@ -20,7 +20,7 @@
}; };
home.sessionVariables = lib.mkIf config.home.preferXdgDirectories { home.sessionVariables = lib.mkIf config.home.preferXdgDirectories {
BATDIFF_USE_DELTA = true; BATDIFF_USE_DELTA = "true";
}; };
programs.fish = lib.mkIf config.programs.fish.enable { programs.fish = lib.mkIf config.programs.fish.enable {

View file

@ -1,14 +1,8 @@
{ {...}: {
lib,
config,
...
}: {
programs.less.enable = true; programs.less.enable = true;
programs.fish = lib.mkIf config.programs.fish.enable { home.sessionVariables = {
interactiveShellInit = '' LESS = "-R";
set -gx LESS -R
'';
}; };
programs.lesspipe.enable = true; programs.lesspipe.enable = true;