From 23d37845896009e3353ffc22d93db69b7b44b2f9 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 16 Dec 2016 15:49:10 +0100 Subject: add bash completion option for programs.zsh --- modules/programs/zsh.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/programs') 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} -- cgit v1.2.3