snippetbashTip
chezmoi — Manage dotfiles across multiple diverse machines. See also: `stow`, `tuckr`, `vcsh`, `homeshick`. Mo
Viewed 0 times
commanddiversemultiplechezmoidotfilesclimanageacross
Problem
How to use the
chezmoi command: Manage dotfiles across multiple diverse machines. See also: stow, tuckr, vcsh, homeshick. More information: <https://www.chezmoi.io/reference/>.Solution
chezmoi — Manage dotfiles across multiple diverse machines. See also: stow, tuckr, vcsh, homeshick. More information: <https://www.chezmoi.io/reference/>.Set up
chezmoi, creating a Git repository in ~/.local/share/chezmoi:chezmoi initSet up
chezmoi from existing dotfiles of a Git repository:chezmoi init {{repository_url}}Start tracking one or more dotfiles:
chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}Update repository with local changes:
chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}Edit the source state of a tracked dotfile:
chezmoi edit {{path/to/dotfile_or_symlink}}See pending changes:
chezmoi diffApply the changes:
chezmoi applyPull changes from a remote repository and apply them:
chezmoi updateCode Snippets
Set up `chezmoi`, creating a Git repository in `~/.local/share/chezmoi`
chezmoi initSet up `chezmoi` from existing dotfiles of a Git repository
chezmoi init {{repository_url}}Start tracking one or more dotfiles
chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}Update repository with local changes
chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}Edit the source state of a tracked dotfile
chezmoi edit {{path/to/dotfile_or_symlink}}Context
tldr-pages: common/chezmoi
Revisions (0)
No revisions yet.