#!/bin/zsh ### Clone bundle(s) and generate the static load script. # # usage: antidote bundle [-h|--help] ... # ### Clone bundle(s) and generate the static load script. #function antidote-bundle { # Download a bundle and prints its Zsh source line. emulate -L zsh; setopt local_options $_adote_funcopts local o_help zparseopts $_adote_zparopt_flags -- h=o_help -help=h || return 1 if (( $#o_help )); then antidote-help bundle return fi # handle bundles as newline delimited arg strings, # or as 1 )); then source <(printf '%s\n' $bundles | __antidote_bulk_clone) fi # generate bundle script source <(printf '%s\n' $bundles | __antidote_parse_bundles) | __antidote_filter_defers #}