1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

dircolors: fix usage together with zsh.oh-my-zsh

PR #1280
This commit is contained in:
Justin Lovinger 2020-05-27 16:18:47 -04:00 committed by Robert Helgesson
parent fe59b5bbc7
commit 3a80ece9fa
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -215,7 +215,8 @@ in {
eval (${pkgs.coreutils}/bin/dircolors -c ~/.dir_colors) 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) eval $(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)
''; '';
}; };