From 1abf1faf6793322438faa46239e17d66cff26d3b Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Sun, 3 Jun 2012 16:13:58 +0530 Subject: [PATCH] Plugins can be specified by just the name. Super short syntax for specifying the plugins. Just give the name to `bundle` command it will be downloaded from the default antigen repo. --- antigen.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/antigen.zsh b/antigen.zsh index 1e73fcb..305ff0a 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -27,6 +27,12 @@ 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 -- 2.0.0