Merge pull request #86643 from asbachb/zsh-bash-autocomplete
zsh: added option to enable compatibility with bash's completion system
This commit is contained in:
commit
5d0fc0f3b6
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue