summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-12-16 15:49:10 +0100
committerDaiderd Jordan <daiderd@gmail.com>2016-12-16 15:49:10 +0100
commit23d37845896009e3353ffc22d93db69b7b44b2f9 (patch)
treed07cdd9467d509d750fa85c852413825b84e784c /modules/programs
parent731920e5afb8deaf47293f6144347ec784d88c28 (diff)
add bash completion option for programs.zsh
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}