mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
Add programs.fish.interactiveShellInit to direnv (#2614)
This commit is contained in:
parent
986cf41b3b
commit
94281669fd
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
'');
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue