Follow the standard iCloud setup on system startup or System Prefences.
> xcode-select —-install
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On Apple Silicon machines, there's one more step. Homebrew files are installed into the /opt/homebrew folder. But the folder is not part of the default $PATH. Follow Homebrew's advice and create a ~/.zprofile file which contains a command which sets up Homebrew. Homebrew shows instructions at the end of the installation process:
> echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
> eval "$(/opt/homebrew/bin/brew shellenv)"
Verify Installation
> brew doctor
Your system is ready to brew.
Install bundling tool
> brew tap Homebrew/bundle
> brew install mackup
> cat << EOF > ~/.mackup.cfg
[storage]
engine = icloud
EOF
> mackup restore
> brew bundle --global
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
> curl -L -o ~/.oh-my-zsh/custom/themes/materialshell.zsh-theme https://raw.githubusercontent.com/carloscuesta/materialshell/master/materialshell.zsh