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:
parent
731920e5af
commit
23d3784589
1 changed files with 9 additions and 0 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue