Skip to content

Manual Setup Record

Record how I setup this project on a new machine (macOS) step by step.

Install Chezmoi

brew install chezmoi age

Get LazyVim as our first settings

# Install Neovim
brew install neovim

# Install essential tools (ripgrep for search, fd for file finding, lazygit)
brew install ripgrep fd jesseduffield/lazygit/lazygit

# https://github.com/LazyVim/starter
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git

Initialize Chezmoi with pre-created dotfiles repo (initialized with README.md with some notes)

chezmoi init
chezmoi cd
git remote add origin git@github.com:$GITHUB_USERNAME/dotfiles.git
git pull origin main
# git branch --set-upstream-to=origin/main main

Add LazyVim configs

chezmoi add ~/.config/nvim
git add -A
git commit -m "Add initial nvim/lazyvim starter configs"

Add .chezmoiignore

EDITOR=nvim chezmoi edit

Add .chezmoi.toml.tmpl (.chezmoi.<format>.tmpl - chezmoi)

This will prompt user to setup when they call chezmoi init And will update the ~/.config/chezmoi/chezmoi.toml file accordingly.

(or we can just use chezmoi edit-config to change the config without using chezmoi interactive prompts)


(After setup CLAUDE.md I mostly ask it to update, so please checkout .specstory/history/ instead)


The oh-my-zsh setup script sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" actually do more than what we need That install zsh & chsh stuff should be manage by Ansible; ~/.oh-my-zsh/custom/ $ZSH_CUSTOM stuff should be managed by chezmoi (and put in different place so we can clone oh-my-zsh repo normally)

oh-my-zsh actually just initialize ~/.zshrc by the templates https://github.com/ohmyzsh/ohmyzsh/blob/master/templates/zshrc.zsh-template We better make it clean https://github.com/ohmyzsh/ohmyzsh/blob/master/templates/minimal.zshrc

chezmoi 當入口 + ansible 管系統依賴 + mise 管 node/bun + uv 管 python

$ mas list
1435447041  DingTalk             (8.2.5)
6447957425  Immersive Translate  (1.25.3)
 409183694  Keynote              (14.5)
 539883307  LINE                 (9.14.0)
 441258766  Magnet               (3.0.7)
1480068668  Messenger            (520.0.0)
 409203825  Numbers              (14.5)
 409201541  Pages                (14.5)
6714467650  Perplexity           (2.251216.0)
1475387142  Tailscale            (1.92.3)
 747648890  Telegram             (12.4.1)
1176074088  Termius              (9.36.2)
 425424353  The Unarchiver       (4.3.9)
 836500024  WeChat               (4.1.5)
 310633997  WhatsApp             (26.2.74)
1295203466  Windows App          (11.1.4)
1247341465  同花顺                  (5.2.2)

Austin (python tools)


Code Agents UI