Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh: added option to enable compatibility with bash's completion system #86643

Merged
merged 1 commit into from May 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions nixos/modules/programs/zsh/zsh.nix
Expand Up @@ -135,6 +135,13 @@ in
type = types.bool;
};

enableBashCompletion = mkOption {
default = false;
description = ''
Enable compatibility with bash's programmable completion system.
'';
type = types.bool;
};

enableGlobalCompInit = mkOption {
default = cfg.enableCompletion;
Expand Down Expand Up @@ -239,6 +246,11 @@ in
autoload -U compinit && compinit
''}

${optionalString cfg.enableBashCompletion ''
# Enable compatibility with bash's completion system.
autoload -U bashcompinit && bashcompinit
''}

# Setup custom interactive shell init stuff.
${cfge.interactiveShellInit}

Expand Down