1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

add bash completion option for programs.zsh

This commit is contained in:
Daiderd Jordan 2016-12-16 15:49:10 +01:00
parent 731920e5af
commit 23d3784589
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -76,6 +76,14 @@ in
'';
};
programs.zsh.enableBashCompletion = mkOption {
type = types.bool;
default = true;
description = ''
Enable bash completion for all interactive zsh shells.
'';
};
};
config = mkIf cfg.enable {
@ -136,6 +144,7 @@ in
${cfg.promptInit}
${optionalString cfg.enableCompletion "autoload -U compinit && compinit"}
${optionalString cfg.enableBashCompletion "autoload -U bashcompinit && bashcompinit"}
${config.environment.extraInit}