Note
If you want to customize this setup to suit your needs, I'd recommend forking this repo and then replacing jerboa88
with your own GitHub username in the commands below
- Run
sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init --apply jerboa88
to install Chezmoi and clone the dotfiles repo. If you already have Chezmoi installed, usechezmoi init --apply jerboa88
instead. - Make a copy of your existing dotfiles in case you want to revert changes
- See the differences between the repo and your home directory with
chezmoi diff
. - If you are okay with the changes, you can apply them to your home directory with
chezmoi apply -v
See the Chezmoi docs for more detailed instructions.
Use chezmoi add YOUR_FILE_HERE
to add a new file to the repo. Chezmoi will make a copy of the file in ~/.local/share/chezmoi
which can then be edited or uploaded like you'd expect.
I would recommend navigating to the Chezmoi directory (~/.local/share/chezmoi
) with chezmoi cd
and editing your files there so Chezmoi can automatically keep track of your changes. Editing files directly in your home directory is possible but it involves extra steps.
When you edit a file in the Chezmoi directory, changes are not immediately applied to your home directory.
- Use
chezmoi diff
to compare your home directory with the Chezmoi repo to see what changes will be applied - Use
chezmoi apply -v
to actually apply the changes to your home directory
Use chezmoi update -v
to pull changes from the remote repo and apply them to your home directory
Navigate to the Chezmoi directory with chezmoi cd
and use standard git commands to push your changes to the remote repo.
For example:
git add YOUR_FILE_HERE
git commit -m "Your commit message here"
git push
This project is licensed under the MIT License. See LICENSE for details.