at 24.11-pre 366 B view raw
1{ config, lib, pkgs, ... }: 2 3let 4 enable = config.programs.bash.enableLsColors; 5in 6{ 7 options = { 8 programs.bash.enableLsColors = lib.mkEnableOption "extra colors in directory listings" // { 9 default = true; 10 }; 11 }; 12 13 config = lib.mkIf enable { 14 programs.bash.promptPluginInit = '' 15 eval "$(${pkgs.coreutils}/bin/dircolors -b)" 16 ''; 17 }; 18}