From 5b251588855cb7b93c0ae2ffacd952e089bd3eb8 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 5 Jun 2012 06:43:15 +0530 Subject: [PATCH] Fix ash-users/zsh-completions not working This particular plugin does not provide a completion file with the same name as the plugin name, but does provide completions for a number of other commands. So we just add all plugin paths to fpath. See https://github.com/sharat87/lawn/issues/1 --- antigen.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 164e962..9bdc3a2 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -178,10 +178,8 @@ bundle-load () { source "$bundle_dir/${name%.theme}.zsh-theme" fi - # Add to $fpath, if it provides completion - if [[ -f "$bundle_dir/_$name" ]]; then - fpath=($bundle_dir $fpath) - fi + # Add to $fpath, for completion(s) + fpath=($bundle_dir $fpath) if $do_init; then bundle-init -- 2.0.0