mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-30 19:54:43 +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 {
|
config = mkIf cfg.enable {
|
||||||
|
@ -136,6 +144,7 @@ in
|
||||||
|
|
||||||
${cfg.promptInit}
|
${cfg.promptInit}
|
||||||
${optionalString cfg.enableCompletion "autoload -U compinit && compinit"}
|
${optionalString cfg.enableCompletion "autoload -U compinit && compinit"}
|
||||||
|
${optionalString cfg.enableBashCompletion "autoload -U bashcompinit && bashcompinit"}
|
||||||
|
|
||||||
${config.environment.extraInit}
|
${config.environment.extraInit}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue