source: https://docs.anaconda.com/free/miniconda/
# create parent directory miniconda3
mkdir -p ~/miniconda3
# download
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
# execute installation and updates
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
# remove setup file
rm -rf ~/miniconda3/miniconda.sh
# initialize miniconda for bash and zsh shells
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh