diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-05-04 21:26:22 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-05-04 21:26:22 +0000 |
commit | 042ef8c8cdf9903372bae46e5bee335f2b40cd3b (patch) | |
tree | da5a31933fcc030691888e7b17629f776c086016 | |
parent | f5a2c482ef3fe4bea71bc8c6da72c9d9ec402649 (diff) | |
download | zsh-042ef8c8cdf9903372bae46e5bee335f2b40cd3b.tar.gz zsh-042ef8c8cdf9903372bae46e5bee335f2b40cd3b.tar.xz zsh-042ef8c8cdf9903372bae46e5bee335f2b40cd3b.zip |
zsh-workers:6200
-rw-r--r-- | Completion/Core/compinit | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Core/compinit b/Completion/Core/compinit index e470e0312..cdc84bd3b 100644 --- a/Completion/Core/compinit +++ b/Completion/Core/compinit @@ -272,6 +272,11 @@ compconf() { typeset -U _i_files _i_files=( ${^~fpath}/_(|*[^~])(N:t) ) +if [[ $#_i_files -lt 20 && $0 = */* ]]; then + # Assume that we need to add the compinit directory to fpath. + fpath=(${0:h} $fpath) + _i_files=( ${^~fpath}/_(|*[^~])(N:t) ) +fi _i_initname=$0 _i_done='' |