Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

chezmoi

install

# Arch
sudo pacman -S chezmoi
# Windows 10
scoop install chezmoi

usage

1 2

# rm -rf ~/.local/share/chezmoi
# rm -rf ~/.config/chezmoi
chezmoi init
vim ~/.local/share/chezmoi/.chezmoiignore
<ignorefile>
<ignoredir>/
chezmoi add <your_dotfiles>
chezmoi cd
git remote add origin https://github.com/<user>/<repo>
git branch -M main
git add .
git commit -m "<commit>"
git push -u origin main

On another PC:

chezmoi init https://github.com/<user>/<repo>
chezmoi diff
chezmoi apply -v
# Pull updates
chezmoi update -v

  1. Dotfiles with Chezmoi

  2. Chezmoi: ignore files and subdirectories