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[@]})" ;;