diff --git a/antigen.zsh b/antigen.zsh index 35911ed..ff09da8 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -143,6 +143,10 @@ antigen-update () { # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` # files. for script ($location/*.zsh) source "$script" + elif [[ ! -z "$(ls "$location" | grep -m1 '.sh$')" ]]; then + # If there are no `*.zsh` files either, we look for and source any + # `*.sh` files instead. + for script ($location/*.sh) source "$script" fi # Add to $fpath, for completion(s)