From 2f9b8437e21fa58b652a64cac650a07bdc123a7c Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Wed, 16 Dec 2015 14:56:54 -0500 Subject: [PATCH] It is probably better to prepend ranther than append --- init.zsh | 2 +- modules/completion/init.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.zsh b/init.zsh index 5552366..7cc137b 100755 --- a/init.zsh +++ b/init.zsh @@ -27,7 +27,7 @@ load_zim_function() { local mod_function # autoload searches fpath for function locations; add enabled module function paths - fpath+=(${argv:+${ZIM}/modules/${^zmodules}/functions(/FN)}) + fpath=(${argv:+${ZIM}/modules/${^zmodules}/functions(/FN)} ${fpath}) function { setopt LOCAL_OPTIONS EXTENDED_GLOB diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index be0acfe..fc5e420 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -13,7 +13,7 @@ if [[ ${TERM} == 'dumb' ]]; then fi # add the completions to the fpath -fpath+=(${0:h}/external/src) +fpath=(${0:h}/external/src ${fpath}) # load and initialize the completion system autoload -Uz compinit && compinit -C -d ${ZDOTDIR:-$HOME}/.zcompdump