migrate
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user