Merge pull request #248748 from acid-bong/zshLsColors
nixos/zsh: add enableLsColors
This commit is contained in:
commit
0f95d1cfe1
1 changed files with 13 additions and 0 deletions
|
@ -159,6 +159,14 @@ in
|
|||
type = types.bool;
|
||||
};
|
||||
|
||||
enableLsColors = mkOption {
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
Enable extra colors in directory listings (used by `ls` and `tree`).
|
||||
'';
|
||||
type = types.bool;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -263,6 +271,11 @@ in
|
|||
|
||||
${cfg.interactiveShellInit}
|
||||
|
||||
${optionalString cfg.enableLsColors ''
|
||||
# Extra colors for directory listings.
|
||||
eval "$(${pkgs.coreutils}/bin/dircolors -b)"
|
||||
''}
|
||||
|
||||
# Setup aliases.
|
||||
${zshAliases}
|
||||
|
||||
|
|
Loading…
Reference in a new issue