Initialize

Clone repository:

chezmoi cd
chezmoi init git@github.com:magic0whi/proteus_dotfiles.git

See what would be changed:

chezmoi diff

Edit and fix errors...

Concepts

  • Destination directory: ~/

    Destination Stage: &destination_directory

  • Source directory: ~/.local/share/chezmoi/

    Source state: &source directory

  • Target directory: ~/

    Targe state: ~/ after chezmoi apply

  • Working tree ~/.local/share/chezmoi/

Daily operations

Show diff & summary:

chezmoi diff
chezmoi status

Update from source directory:

chezmoi -v apply

Update from destination:

chezmoi re-add filename

Convert to template:

chezmoi chattr +template filename

Revert from template (Only filename changed):

chezmoi chattr -- -template filename

List chezmoi managed files:

chezmoi managed

List template data (environment vaiable):

chezmoi data