1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

Add programs.fish.interactiveShellInit to direnv (#2614)

This commit is contained in:
Zsolt Szende 2022-01-17 00:13:32 +00:00 committed by GitHub
parent 986cf41b3b
commit 94281669fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,5 +112,12 @@ in {
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
'';
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration (
# Using mkAfter to make it more likely to appear after other
# manipulations of the prompt.
mkAfter ''
${pkgs.direnv}/bin/direnv hook fish | source
'');
};
}