#!/usr/bin/bash host=${1:?missing host argument} subdomains=(www git dav) mkcert -install mkcert "${subdomains[@]/%/.$host}" "$host"