Files
Compose-Files/Backups/Miker/.trash/Chezmoi.md
T
2026-07-20 09:23:17 -04:00

31 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Now, just remember to always edit your dotfiles templates. Chezmoi give you some helpers:
   chezmoi cd # will cd you to the dotfiles repo directory to edit files, or use;
   chezmoi edit ~/.zshrc # will open the template in your editor
Whenever you change the template or the data file, just update everything:
   chezmoi update
push the changes to your repo:
   chezmoi cd
   git add .
   git commit -m "Update dotfiles"
   git push
If you create new dotfiles, let's say you started to use Fish, then don't forget to add it to Chezmoi like this:
   chezmoi add --autotemplate ~/.fishrc
You can use the convenience script to install the dotfiles on any machine with a single command. Simply run the following command in your terminal:
   export GITHUB\_USERNAME=mmcfetridge1969
   sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply $GITHUB\_USERNAME
Apply will install all the dependencies and add files to your $HOME.
   chezmoi apply
Update - From time to time, start the update simply with:
   chezmoi diff
   chezmoi update