✨ feat(less): Set env vars independently of shell
This commit is contained in:
parent
90d264cc44
commit
8d1dc2baef
2 changed files with 4 additions and 10 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue