Managed with chezmoi.
One-liner to set up a new machine:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply https://github.com/mai0313/dotfiles.git- Go to GitHub Settings > Codespaces
- Set Dotfiles repository to
mai0313/dotfiles - Check Automatically install dotfiles
New codespaces will be configured automatically.
The config template automatically detects the environment:
| Environment | Detection | is_work |
is_codespace |
|---|---|---|---|
| Cloudtop | *.c.googlers.com |
true |
false |
| GitHub Codespaces | CODESPACES=true |
false |
true |
| Personal | default | false |
false |
chezmoi diff # Check what changed between local and source
chezmoi apply # Apply source state to local files
chezmoi re-add # Sync local changes back to source directory
chezmoi add ~/.file # Start managing a new file
chezmoi update # Pull from remote + apply (for other machines)After chezmoi apply deploys the dotfiles, run the setup scripts manually:
~/setup.sh # Install zsh, oh-my-zsh, powerlevel10k, fonts
~/setup_adb.sh # (Cloudtop only) Clone ADB vendor keys