2020-09-27 04:46:58 +01:00
|
|
|
# Chezmoi
|
|
|
|
|
|
|
|
> A multi-machine dotfile manager, written in Go.
|
|
|
|
> More information: <https://chezmoi.io>.
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Setup up `chezmoi`, creating a Git repository in `~/.local/share/chezmoi`:
|
2020-09-27 04:46:58 +01:00
|
|
|
|
|
|
|
`chezmoi init`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Start tracking one or more dotfiles:
|
2020-09-27 04:46:58 +01:00
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
`chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}`
|
2020-09-27 04:46:58 +01:00
|
|
|
|
|
|
|
- Edit the source state of a tracked dotfile:
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
`chezmoi edit {{path/to/dotfile_or_symlink}}`
|
2020-09-27 04:46:58 +01:00
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- See pending changes:
|
2020-09-27 04:46:58 +01:00
|
|
|
|
|
|
|
`chezmoi diff`
|
|
|
|
|
|
|
|
- Apply the changes:
|
|
|
|
|
|
|
|
`chezmoi -v apply`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Set up `chezmoi` from existing dotfiles of a Git repository:
|
2020-09-27 04:46:58 +01:00
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
`chezmoi init {{repository_url}}`
|
2020-09-27 04:46:58 +01:00
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Pull changes from a remote repository and apply them:
|
2020-09-27 04:46:58 +01:00
|
|
|
|
|
|
|
`chezmoi update`
|