$linuxjunkies
>

chezmoi(1)

chezmoi is a dotfile manager that securely manages your configuration files across multiple machines.

UbuntuDebianFedoraArch

Synopsis

chezmoi [OPTIONS] COMMAND [ARGS]...

Description

chezmoi helps you manage dotfiles (configuration files in your home directory) with version control, encryption, and cross-machine synchronization. It stores your dotfiles in a source directory, applies them to your home directory, and can track local modifications.

chezmoi supports templating for machine-specific configurations, encryption of sensitive files, and seamless updates across multiple computers. It integrates with git for version control and can fetch dotfiles from remote repositories.

Common options

FlagWhat it does
-c, --config STRINGconfiguration file path (default: ~/.config/chezmoi/chezmoi.toml)
-S, --source STRINGsource directory path (default: ~/.local/share/chezmoi)
-D, --destination STRINGdestination directory path (default: home directory)
-v, --verboseenable verbose output to see applied changes
--dry-runshow what would be done without making changes
-i, --interactiveprompt for confirmation before applying changes
--color STRINGcolorize output (auto, on, or off)
-h, --helpshow help message for a command

Examples

initialize chezmoi and clone dotfiles from a remote repository

chezmoi init https://github.com/user/dotfiles.git

add a configuration file to chezmoi's source directory

chezmoi add ~/.config/nvim/init.vim

preview what changes would be applied to your home directory

chezmoi apply --dry-run

apply all managed dotfiles to your home directory

chezmoi apply

show which dotfiles differ between source and home directory

chezmoi status

edit a managed dotfile in your source directory

chezmoi edit ~/.bashrc

pull latest changes from remote repository and apply them

chezmoi update

list all files managed by chezmoi

chezmoi managed

Related commands