lol

nixos/zsh: add enableLsColors

Borrowed from nixos/bash/ls-colors module

+13
+13
nixos/modules/programs/zsh/zsh.nix
··· 159 159 type = types.bool; 160 160 }; 161 161 162 + enableLsColors = mkOption { 163 + default = true; 164 + description = lib.mdDoc '' 165 + Enable extra colors in directory listings (used by `ls` and `tree`). 166 + ''; 167 + type = types.bool; 168 + }; 169 + 162 170 }; 163 171 164 172 }; ··· 262 270 ${cfge.interactiveShellInit} 263 271 264 272 ${cfg.interactiveShellInit} 273 + 274 + ${optionalString cfg.enableLsColors '' 275 + # Extra colors for directory listings. 276 + eval "$(${pkgs.coreutils}/bin/dircolors -b)" 277 + ''} 265 278 266 279 # Setup aliases. 267 280 ${zshAliases}