diff options
author | Justin Lovinger <git@justinlovinger.com> | 2020-05-27 16:18:47 -0400 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-05-28 00:08:15 +0200 |
commit | 3a80ece9fa0de388ad27503059f7856c9315d491 (patch) | |
tree | 74f772640742f9910a176412808b3596cde2c49c | |
parent | fe59b5bbc756f93a5b0321cb918913ae5a43db23 (diff) |
dircolors: fix usage together with `zsh.oh-my-zsh`
PR #1280
-rw-r--r-- | modules/programs/dircolors.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/programs/dircolors.nix b/modules/programs/dircolors.nix index 5cd913a6331..026de72d711 100644 --- a/modules/programs/dircolors.nix +++ b/modules/programs/dircolors.nix @@ -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) ''; }; |