diff --git a/antigen.zsh b/antigen.zsh index df87ed6..f37c9a5 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -29,12 +29,6 @@ antigen-bundle () { i=$(($i + 1)) done - # Check if url is just the plugin name. Super short syntax. - if [[ "$url" != */* ]]; then - loc="plugins/$url" - url="$ANTIGEN_DEFAULT_REPO_URL" - fi - # Set spec values from keyword arguments, if any. The remaining arguments # are all assumed to be keyword arguments. while [[ $1 == --* ]]; do @@ -51,6 +45,12 @@ antigen-bundle () { shift done + # Check if url is just the plugin name. Super short syntax. + if [[ "$url" != */* ]]; then + loc="plugins/$url" + url="$ANTIGEN_DEFAULT_REPO_URL" + fi + # Resolve the url. url="$(-antigen-resolve-bundle-url "$url")"