nixos/pay-respects: fix interactiveShellInit for fish and zsh
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
parent
3cd382262c
commit
c346fd5125
@ -11,6 +11,7 @@ let
|
|||||||
mkEnableOption
|
mkEnableOption
|
||||||
mkIf
|
mkIf
|
||||||
mkOption
|
mkOption
|
||||||
|
optionalString
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
inherit (types) str;
|
inherit (types) str;
|
||||||
@ -48,8 +49,8 @@ in
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
bash.interactiveShellInit = initScript "bash";
|
bash.interactiveShellInit = initScript "bash";
|
||||||
fish.interactiveShellInit = mkIf config.programs.fish.enable initScript "fish";
|
fish.interactiveShellInit = optionalString config.programs.fish.enable (initScript "fish");
|
||||||
zsh.interactiveShellInit = mkIf config.programs.zsh.enable initScript "zsh";
|
zsh.interactiveShellInit = optionalString config.programs.zsh.enable (initScript "zsh");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
meta.maintainers = with maintainers; [ sigmasquadron ];
|
meta.maintainers = with maintainers; [ sigmasquadron ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user