We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fcc944 + 8ac1a5f commit 8f84c96Copy full SHA for 8f84c96
1 file changed
nix/shell-plugins.nix
@@ -95,6 +95,7 @@ in
95
'')
96
pkg-exe-names;
97
packages = lib.optional (cfg.package != null) cfg.package ++ cfg.plugins;
98
+ initExtraPosix = strings.concatStringsSep "\n" posixFunctions;
99
in
100
mkIf cfg.enable (mkMerge [
101
{
@@ -103,9 +104,9 @@ in
103
104
(optionalAttrs is-home-manager {
105
programs = {
106
# for the Bash and Zsh home-manager modules,
- # the initExtra option is equivalent to Fish's interactiveShellInit
107
- bash.initExtra = strings.concatStringsSep "\n" posixFunctions;
108
- zsh.initExtra = strings.concatStringsSep "\n" posixFunctions;
+ # the initExtra/initContent option is equivalent to Fish's interactiveShellInit
+ bash.initExtra = initExtraPosix;
109
+ zsh.initContent = initExtraPosix;
110
};
111
home = {
112
inherit packages;
0 commit comments