# Managing dotfiles and secret with chezmoi

DevFeed: [Managing dotfiles and secret with chezmoi](<https://devfeed.tech/articles/managing-dotfiles-and-secret-with-chezmoi-26073.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2020/04/01/manage_dotfiles_with_chezmoi/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2020-04-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [chezmoi](<https://devfeed.tech/topics/chezmoi.md>), [dotfiles](<https://devfeed.tech/topics/dotfiles.md>), [1Password](<https://devfeed.tech/topics/1password.md>), [Git](<https://devfeed.tech/topics/git.md>)

Tags: [1password](<https://devfeed.tech/tags/1password.md>), [archive](<https://devfeed.tech/tags/archive.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [cli](<https://devfeed.tech/tags/cli.md>), [files](<https://devfeed.tech/tags/files.md>), [git](<https://devfeed.tech/tags/git.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [home](<https://devfeed.tech/tags/home.md>), [machine](<https://devfeed.tech/tags/machine.md>), [oh-my-zsh](<https://devfeed.tech/tags/oh-my-zsh.md>), [password](<https://devfeed.tech/tags/password.md>), [password-manager](<https://devfeed.tech/tags/password-manager.md>), [password-managers](<https://devfeed.tech/tags/password-managers.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [secret](<https://devfeed.tech/tags/secret.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [setup](<https://devfeed.tech/tags/setup.md>), [simple](<https://devfeed.tech/tags/simple.md>), [templating](<https://devfeed.tech/tags/templating.md>), [using](<https://devfeed.tech/tags/using.md>)

## AI overview

chezmoi keeps managed dotfiles in a Git repository of source files and applies them to home-directory targets. The excerpt describes comparing source and target changes, applying source files to targets, or updating source files from local targets, then committing and synchronizing the repository remotely. For secrets, it introduces templates and a password-manager CLI, using 1Password as its example, but the excerpt ends before showing how secret values are configured or used. Template and system-bootstrap features are mentioned but not covered.

## Source excerpt

Every once in a while, you may need to bootstrap a new machine, and along with it to reconfigure home directory's dot files. Various approaches already exist, using simple archive, git the home directory, gnu stow (symlinks), etc.