/dotfiles

macOS dotfiles

Primary LanguageNix

chezmoi logo chezmoi dotfiles

Managing my dotfiles, securely using chezmoi and 1password.

With chezmoi, I can install chezmoi and all my dotfiles on a new, empty machine with a single command:

$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply ZeroDeth

But before that I should have setup and autheneticate 1Password CLI, so:

Download 1Password CLI

Authenticate against 1Password using:

$ op account add --address $SUBDOMAIN.1password.com --email $EMAIL
$ eval $(op signin --account $SUBDOMAIN)

And now

Updating my dotfiles on any machine can be done via single command:

$ chezmoi update

and the responsible adult way should be:

$ chezmoi source pull -- --rebase && chezmoi diff

If you're happy with the changes, run:

$ chezmoi update

Updating my oh-my-zsh and all external plugins can be done via:

$ chezmoi update -R