From d8cc8d3feb16f2b8d3d0d9cbbd098074b1de9553 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 30 Nov 2020 19:29:30 +0200 Subject: [PATCH] [zsh] minor edits --- zsh/env.zsh | 2 ++ zsh/zplg.zsh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh/env.zsh b/zsh/env.zsh index bf26bc5..796896d 100644 --- a/zsh/env.zsh +++ b/zsh/env.zsh @@ -31,3 +31,5 @@ export JQ_COLORS="${(j.:.)jq_colors}" unset jq_colors export FZF_DEFAULT_OPTS='--preview-window=sharp' + +export HOMEBREW_NO_AUTO_UPDATE=1 diff --git a/zsh/zplg.zsh b/zsh/zplg.zsh index 3dbec9c..d0a3355 100644 --- a/zsh/zplg.zsh +++ b/zsh/zplg.zsh @@ -393,7 +393,12 @@ plugin() { return 1 fi - local value; for value in "$plugin_dir/"${^@}; do + local value; for value in "$@"; do + if [[ -z "$value" ]]; then + value="${plugin_dir}" + else + value="${plugin_dir}/${value}" + fi if eval "(( \${${var_name}[(ie)\$value]} > \${#${var_name}} ))"; then case "$operator" in prepend) eval "$var_name=(\"\$value\" \${$var_name[@]})" ;;