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.sh
First, 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:
gh
wget
bat
ripgrep
fd
fzf
zoxide
(with setup handler: Setup zoxide)neovim
node
nvm
(with setup handler: Setup nvm)golang
(with setup handler: Setup gvm)
The following casks will be installed using Homebrew:
google-chrome
arc
warp
(with setup handler: Setup warp)visual-studio-code
(with setup handler: Setup vscode)miniconda
(with setup handler: Init conda)obsidian
docker
raycast
gpg-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 true
To generate a new GPG key pair, follow these steps:
gpg --full-generate-key
After generating the key pair, you can list your secret keys to retrieve the key ID:
gpg --list-secret-keys --keyid-format=long
Export your GPG public key to an ASCII-armored file:
gpg --armor --export <key> > public_key.asc
Replace 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