Commit 5b251588855cb7b93c0ae2ffacd952e089bd3eb8

Authored by Shrikant Sharat
1 parent 2b5d4a0c3f

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

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

... ... @@ -178,10 +178,8 @@ bundle-load () {
178 178 source "$bundle_dir/${name%.theme}.zsh-theme"
179 179 fi
180 180  
181   - # Add to $fpath, if it provides completion
182   - if [[ -f "$bundle_dir/_$name" ]]; then
183   - fpath=($bundle_dir $fpath)
184   - fi
  181 + # Add to $fpath, for completion(s)
  182 + fpath=($bundle_dir $fpath)
185 183  
186 184 if $do_init; then
187 185 bundle-init