From 9a4c2b6d332c878847e6ad9c39314c6a5da8fbb7 Mon Sep 17 00:00:00 2001 From: Jens Nolte <jens@nightmarestudio.de> Date: Wed, 19 Feb 2020 15:19:06 +0100 Subject: [PATCH] Extend fpath with completion before calling compinit --- nixos/layers/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/layers/zsh.nix b/nixos/layers/zsh.nix index aa70e4f..f0c4912 100644 --- a/nixos/layers/zsh.nix +++ b/nixos/layers/zsh.nix @@ -62,12 +62,13 @@ in export LESS='-g -i -M -R -S -w -z-4' export LOCAL_ZSH_COMPLETION_PATH=~/.local/zsh-completions - fpath=($LOCAL_ZSH_COMPLETION_PATH $fpath) ''; # FIXME: set the less input preprocessor #export LESSOPEN="| ${pkgs.lesspipe}/bin/lesspipe.sh %s 2>&-" programs.zsh.interactiveShellInit = '' + fpath=($LOCAL_ZSH_COMPLETION_PATH $fpath) + zstyle ':completion:*' auto-description '%d' zstyle ':completion:*' completer _expand _complete _ignored zstyle ':completion:*' format '%d' -- GitLab