Commit 1abf1faf6793322438faa46239e17d66cff26d3b
1 parent
bb140864c4
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.
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -27,6 +27,12 @@ bundle () { |
27 | 27 | i=$(($i + 1)) |
28 | 28 | done |
29 | 29 | |
30 | + # Check if url is just the plugin name. Super short syntax. | |
31 | + if [[ "$url" != */* ]]; then | |
32 | + loc="plugins/$url" | |
33 | + url="$ANTIGEN_DEFAULT_REPO_URL" | |
34 | + fi | |
35 | + | |
30 | 36 | # Set spec values from keyword arguments, if any. The remaining arguments |
31 | 37 | # are all assumed to be keyword arguments. |
32 | 38 | while [[ $1 == --*=* ]]; do |