summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/zsh.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix
index 32dfd8f..c91b521 100644
--- a/modules/programs/zsh.nix
+++ b/modules/programs/zsh.nix
@@ -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}