keychain: set SHELL during initialization (#2880)
Explicitly sets the SHELL environment variable in the snippets put into the shell init files. Fixes #2256
This commit is contained in:
parent
a640dddc9a
commit
0586d2d42a
|
@ -100,13 +100,13 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||||
eval "$(${shellCommand})"
|
SHELL=bash eval "$(${shellCommand})"
|
||||||
'';
|
'';
|
||||||
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
||||||
eval (${shellCommand})
|
SHELL=fish eval (${shellCommand})
|
||||||
'';
|
'';
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
eval "$(${shellCommand})"
|
SHELL=zsh eval "$(${shellCommand})"
|
||||||
'';
|
'';
|
||||||
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
||||||
eval "$(${shellCommand})"
|
eval "$(${shellCommand})"
|
||||||
|
|
Loading…
Reference in a new issue