This playbook is designed to automate the setup process for a development MacBook. It contains configurations and installations commonly used in development environments.
The script provided is intended to be run on a clean install MacBook to ensure a consistent setup process.
Run a script and following the instruction.
chmod +x ./install.sh
./install.shFirst, Zsh shell and Oh My Zsh will be installed
And other config need to be config in .zshrc need to be do after this.
The following packages will be installed using Homebrew:
ghwgetbatripgrepfdfzfzoxide(with setup handler: Setup zoxide)neovimnodenvm(with setup handler: Setup nvm)golang(with setup handler: Setup gvm)
The following casks will be installed using Homebrew:
google-chromearcwarp(with setup handler: Setup warp)visual-studio-code(with setup handler: Setup vscode)miniconda(with setup handler: Init conda)obsidiandockerraycastgpg-suite
To enhance the security of your Git commits, you can configure Git to use GPG signing. This involves generating a GPG key pair, configuring Git to sign commits with your GPG key, and adding your GPG public key to your GitHub account.
Before setting up GPG signing for Git commits, make sure to grant the necessary OAuth scope and configure Git to use GPG signing:
gh auth refresh -s write:gpg_key read:gpg_key
git config --global commit.gpgsign trueTo generate a new GPG key pair, follow these steps:
gpg --full-generate-keyAfter generating the key pair, you can list your secret keys to retrieve the key ID:
gpg --list-secret-keys --keyid-format=longExport your GPG public key to an ASCII-armored file:
gpg --armor --export <key> > public_key.ascReplace with the key ID obtained from the previous step.
Finally, add your GPG public key to your GitHub account:
gh gpg-key add ./public_key.asc