diff --git a/antigen.zsh b/antigen.zsh index a2df8c0..1692e39 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -56,6 +56,20 @@ antigen-bundle () { } +antigen-bundles () { + # Bulk add many bundles at one go. Empty lines and lines starting with a `#` + # are ignored. Everything else is given to `antigen-bundle` as is, no + # quoting rules applied. + + local line + + grep -v '^$\|^#' | while read line; do + # Using `eval` so that we can use the shell-style quoting in each line + # piped to `antigen-bundles`. + eval "antigen-bundle $line" + done +} + antigen-bundle-update () { # Update your bundles, i.e., `git pull` in all the plugin repos. -antigen-echo-record | awk '{print $1}' | sort -u | while read url; do