My dotfiles managed by chezmoi.
- OS: Ubuntu 22.04 LTS
- Shell: zsh
- dotfiles manager: chezmoi
- neovim
- nix
- VS Code
- Dev Containers
- Install chezmoi by following the instructions on the official website.
# example for Ubuntu
dpkg --print-architecture
amd64
wget https://github.com/twpayne/chezmoi/releases/download/v2.69.3/chezmoi_2.69.3_linux_amd64.deb
sudo apt install ./chezmoi_2.69.3_linux_amd64.debchezmoi edit <your dotfile name>
chizmoi apply # deploy changes
chezmoi cd # go to chezmoi directory(~/.local/share/chezmoi/)
git add .
git commit -m "update <your dotfile name>"
git pushNote
If you update dotfiles directly then ~/.local/share/chezmoi/ will not be changed.
chezmoi add <your dotfile name>
chezmoi add <your dotfile path>After try
chezmoi generate-install-script > install.shuse .chezmoiignore file.