🌱 dotfiles, managed by chezmoi. 🏠
This repo holds some configuration files for my current setup, which are managed by chezmoi across multiple workstations and Codespaces.
First of all, we need to install git, which is packed in Xcode command line tools.
sudo softwareupdate -i -a
xcode-select --installInstall chezmoi first, and pull configs from this repo.
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply tothlpApply the configs. Note, that before applying the configs, it will run the init scripts located in .chezmoiscripts folder. It will install homebrew for us, aterwards applies the configs.
chezmois applyAfter applying the configs, the .chezmoiscripts/run_once_after_01_install-packages-from-brewfile.sh.tmpl script runs brew bundle, and installs dependencies from Brewfile.
First of all, we need to install git, which is packed in Xcode command line tools.
sudo softwareupdate -i -a
xcode-select --installNext, we will need Homebrew. The installation below is copied from the Homebrew official site.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install chezmoi, and init it from this repo.
brew install chezmoichezmoi init --apply tothlpApply the config files
chezmoi -v applyAt last, install the packages from Brewfile.
brew bundleRecreate Brewfile if needed
brew bundle dump --forceAdd it to chezmoi, so Git can notice changes
chezmoi add BrewfileWe can also edit the chezmoi-managed files directly
chezmoi edit ~/.zshrcSee the diff, apply changes
chezmoi diff
chezmoi apply -vAfter that, we can change into chezmoi's directory, and review changes, push to git, etc
chezmoi cd