~yerinalexey/miniplug

89211098dafc6c1687c14f58af4cd566c782a88f — Alexey Yerin 1 year, 2 months ago 6342552
Return only one file in __miniplug_find

Fixes issues with plugins those have multiple entrypoints
1 files changed, 1 insertions(+), 1 deletions(-)

M miniplug.zsh
M miniplug.zsh => miniplug.zsh +1 -1
@@ 15,7 15,7 @@ function __miniplug_find() {
  local searchdir="$1"
  local searchterm="$2"

  find "$searchdir" -maxdepth 1 -type f -name "$searchterm"
  find "$searchdir" -maxdepth 1 -type f -name "$searchterm" | head -n 1
}

# Check if plugin is already loaded