From 7e423ae722ba82c7aa2848b3caa760d521bb353f Mon Sep 17 00:00:00 2001 From: Jens Nolte <jens@nightmarestudio.de> Date: Thu, 20 Feb 2020 01:58:23 +0100 Subject: [PATCH] Use += to change fpath in zsh --- nixos/layers/zsh.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nixos/layers/zsh.nix b/nixos/layers/zsh.nix index d85fe6f..d151f29 100644 --- a/nixos/layers/zsh.nix +++ b/nixos/layers/zsh.nix @@ -16,10 +16,8 @@ in programs.zsh.promptInit = '' if [ "$TERM" != dumb ] then - fpath=( - ${promptPath} - $fpath - ) + fpath+=${promptPath} + source ${promptPath}/load_prompt fi ''; @@ -69,7 +67,7 @@ in #export LESSOPEN="| ${pkgs.lesspipe}/bin/lesspipe.sh %s 2>&-" programs.zsh.interactiveShellInit = '' - fpath=($LOCAL_ZSH_COMPLETION_PATH $fpath) + fpath+=$LOCAL_ZSH_COMPLETION_PATH zstyle ':completion:*' auto-description '%d' zstyle ':completion:*' completer _expand _complete _ignored -- GitLab