diff options
author | Benjamin Asbach <asbachb@users.noreply.github.com> | 2020-05-03 11:46:13 +0200 |
---|---|---|
committer | Benjamin Asbach <asbachb@users.noreply.github.com> | 2020-05-03 12:08:25 +0200 |
commit | cbb5b578b881b01c570e882088bd0869bea15971 (patch) | |
tree | 5198a4d51020f41feec2ddea2e90919dad7a4827 | |
parent | f17f830897fcfc75914bd4a7d4ccd2cdd5485f81 (diff) | |
download | nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar.gz nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar.bz2 nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar.lz nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar.xz nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.tar.zst nixpkgs-cbb5b578b881b01c570e882088bd0869bea15971.zip |
zsh: added option to enable compatibility with bash's completion system
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 930cc1987a3..049a315c762 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -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} |