dircolors: fix usage together with zsh.oh-my-zsh
PR #1280
(cherry picked from commit 3a80ece9fa
)
This commit is contained in:
parent
12620f7fd4
commit
d8fdbbdf03
|
@ -215,7 +215,8 @@ in {
|
|||
eval (${pkgs.coreutils}/bin/dircolors -c ~/.dir_colors)
|
||||
'';
|
||||
|
||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||
# Set `LS_COLORS` before Oh My Zsh and `initExtra`.
|
||||
programs.zsh.initExtraBeforeCompInit = mkIf cfg.enableZshIntegration ''
|
||||
eval $(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue