diff --git a/antigen.zsh b/antigen.zsh index 1cca2bc..6b49bfd 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -33,7 +33,8 @@ antigen-bundle () { # Set spec values from keyword arguments, if any. The remaining arguments # are all assumed to be keyword arguments. while [[ $1 == --* ]]; do - local arg="${1#--}" + # Remove the `--` at the start and replace the rest of `-`'s to `_`'s. + local arg="${${1#--}//-/_}" if [[ $arg != *=* ]]; then arg="$arg=true"