~yerinalexey/miniplug

28fc93d06160da8cb7a1699cf1aea1ce7502a8da — Alexey Yerin 1 year, 30 days ago 754dd09
fix: do not show info from `git pull`
1 files changed, 2 insertions(+), 3 deletions(-)

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

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

# Check if plugin is already loaded
function __miniplug_check_loaded() {


@@ 133,7 132,7 @@ function __miniplug_update() {

    if [ -n "$diffs" ]; then
      # Pull!
      git -C "$plugin_location" pull "$remote" "$branch" && echo "$plugin_url successfully updated!"
      git -C -q "$plugin_location" pull "$remote" "$branch" && echo "$plugin_url successfully updated!"
    else
      echo "$plugin_url is up-to-date!"
    fi