diff options
author | Izorkin <Izorkin@gmail.com> | 2017-08-25 11:34:21 +0300 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-08-25 09:34:21 +0100 |
commit | 520a43ced38843d5116594b359854e02fa7ed057 (patch) | |
tree | c49d5f2b5243679fa946e4200f984cd14d156427 /nixos/modules/programs | |
parent | f861426de968a91d360ce54c54bd5355fd51fb4e (diff) | |
download | nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar.gz nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar.bz2 nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar.lz nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar.xz nixlib-520a43ced38843d5116594b359854e02fa7ed057.tar.zst nixlib-520a43ced38843d5116594b359854e02fa7ed057.zip |
Fix zsh completions (#28550)
* Fix zsh completions * Fix zsh completions (fix commit) * Fix zsh completions (fix commit)
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index a055291282c9..ee61e2d2382c 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -158,6 +158,11 @@ in HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help" + # Tell zsh how to find installed completions + for p in ''${(z)NIX_PROFILES}; do + fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions) + done + ${optionalString cfg.enableCompletion "autoload -U compinit && compinit"} ${optionalString (cfg.enableAutosuggestions) @@ -172,11 +177,6 @@ in ${cfg.promptInit} - # Tell zsh how to find installed completions - for p in ''${(z)NIX_PROFILES}; do - fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions) - done - # Read system-wide modifications. if test -f /etc/zshrc.local; then . /etc/zshrc.local |