mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
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
1 changed files with 3 additions and 3 deletions
|
@ -100,13 +100,13 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||
eval "$(${shellCommand})"
|
||||
SHELL=bash eval "$(${shellCommand})"
|
||||
'';
|
||||
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
||||
eval (${shellCommand})
|
||||
SHELL=fish eval (${shellCommand})
|
||||
'';
|
||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||
eval "$(${shellCommand})"
|
||||
SHELL=zsh eval "$(${shellCommand})"
|
||||
'';
|
||||
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
||||
eval "$(${shellCommand})"
|
||||
|
|
Loading…
Reference in a new issue