Skip to content

SenseiMarv/dotfiles

Repository files navigation

SenseiMarv Dotfiles

Requirements

Installation

Initialize chezmoi with this dotfiles repository:

chezmoi init https://github.com/SenseiMarv/dotfiles.git

Check the changes, chezmoi would do on the machine:

chezmoi diff

Apply the changes if everything looks good:

chezmoi apply -v

Maintenance

Update files

Please be cautious to not leak secrets! You can add secrets using the Password manager integration or by using a password manager CLI (e.g. https://developer.1password.com/docs/cli/)

Through chezmoi (will automatically commit and push the changes after the edit)

chezmoi edit $FILE

After editing a file, the changes have to be applied (this step can be skipped if the -a / --apply flag was used in the command above):

chezmoi apply -v

Manually (will automatically commit and push the changes after the re-add)

e.g.

code $FILE

After editing a tracked file manually, it has to be re-added:

chezmoi add $FILE

Update Brewfile

The Brewfile can be updated by running the following command in the user directory:

brew bundle dump --force

Pull updates

chezmoi update

You can pull updates without applying them (the changes can be applied afterwards via chezmoi apply):

chezmoi git pull -- --rebase && chezmoi diff

Sources