feat(less): Set env vars independently of shell

This commit is contained in:
punkfairie 2024-10-30 20:22:10 -07:00
parent 376b6f1255
commit 2df874e01b
2 changed files with 4 additions and 10 deletions

View file

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

View file

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