Add programs.fish.interactiveShellInit to direnv (#2614)
This commit is contained in:
parent
986cf41b3b
commit
94281669fd
|
@ -112,5 +112,12 @@ in {
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
|
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