diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-16 15:49:10 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-16 15:49:10 +0100 |
| commit | 23d37845896009e3353ffc22d93db69b7b44b2f9 (patch) | |
| tree | d07cdd9467d509d750fa85c852413825b84e784c /modules/programs | |
| parent | 731920e5afb8deaf47293f6144347ec784d88c28 (diff) | |
add bash completion option for programs.zsh
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/zsh.nix | 9 |
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} |
