note
You have to login to AppStore before run this script. (for install apps from AppStore in this script.)
$ mkdir -p ~/repos/github.com/yagi2/dotfiles
$ git clone https://github.com/yagi2/dotfiles.git ~/repos/github.com/yagi2/dotfiles
$ ssh-keygen -t ed25519 -C "[email protected]" # and save file path to ~/.ssh/id_ed25519_github
$ pbcopy < ~/.ssh/id_ed25519_github.pub # and add new SSH key in GitHub
$ ln -nfs ~/repos/github.com/yagi2/dotfiles/config/.ssh/config ~/.ssh/config
$ ssh -T [email protected]
$ dotfiles/setup.sh
$ /usr/local/bin/mitamae local dotfiles/mitamae/roles/darwin/default.rb
If you want to use a different user name
$ echo "{\"home\": \"/Users/${user_name}\"}" >/tmp/node.json
$ /usr/local/bin/mitamae local --node-json /tmp/node.json dotfiles/mitamae/roles/darwin/default.rb
note
Please install Xcode using the GUI version of xcodes while Apple Silicon's temporary support is in place.
$ xcodes list # for login to Apple Developers
$ xcodes install --latest