mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
dircolors: apply extraConfig after settings (#1890)
Applying extraConfig before settings made it unable to override the defaults.
This commit is contained in:
parent
447ed0fbcb
commit
ad04237d51
3 changed files with 11 additions and 4 deletions
|
@ -1880,6 +1880,13 @@ in
|
||||||
https://no-color.org/.
|
https://no-color.org/.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
time = "2021-03-29T21:05:50+00:00";
|
||||||
|
message = ''
|
||||||
|
Configuration specified by 'programs.dircolors.extraConfig' is now
|
||||||
|
applied after 'programs.dircolors.settings'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,8 +204,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".dir_colors".text = concatStringsSep "\n" ([ ]
|
home.file.".dir_colors".text = concatStringsSep "\n" ([ ]
|
||||||
++ optional (cfg.extraConfig != "") cfg.extraConfig
|
++ mapAttrsToList formatLine cfg.settings ++ [ "" ]
|
||||||
++ mapAttrsToList formatLine cfg.settings) + "\n";
|
++ optional (cfg.extraConfig != "") cfg.extraConfig);
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||||
eval $(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)
|
eval $(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# Extra dircolors configuration.
|
|
||||||
|
|
||||||
.7z 01;31
|
.7z 01;31
|
||||||
.aac 00;36
|
.aac 00;36
|
||||||
.ace 01;31
|
.ace 01;31
|
||||||
|
@ -131,3 +129,5 @@ SETUID 37;41
|
||||||
SOCK 01;35
|
SOCK 01;35
|
||||||
STICKY 37;44
|
STICKY 37;44
|
||||||
STICKY_OTHER_WRITABLE 30;42
|
STICKY_OTHER_WRITABLE 30;42
|
||||||
|
|
||||||
|
# Extra dircolors configuration.
|
||||||
|
|
Loading…
Reference in a new issue