Using chezmoi to share configuration files across multiple systems.
Introduction to my dotfile setup.
- Mac & Linux:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply fabitosh - Windows: Install chezmoi. Run
chezmoi init --apply fabitosh.
- ssh key generation and auth on github
Unsure. Keyboard layout without deadletters. Karabiner?
- Install WSL (Corporate Network Issue Fix:
wsl.exe --update --web-download) - PowerToys
- Jetbrains Toolbox
- Install scoop
- Load Keyboard Layout without Deadletters in MKLC. Build DLL and Setup Package. Run setup.exe. Keyboard can be selected.
- vpn certificates
- Java installation
- secrets_env
- databricks.cfg
chezmoi add .crazyconfigchezmoi apply
chezmoi update
Don't edit the file directly! chezmoi will not track those changes.
chezmoi edit .crazyconfigchezmoi apply
Removed packages and casks in the dotfiles repo do not get uninstalled on chezmoi apply.
To preview potential uninstall:
chezmoi execute-template '
{{- range .packages.darwin.brews }}brew "{{ . }}"
{{ end -}}
{{- range .packages.darwin.casks }}cask "{{ . }}"
{{ end -}}
' | brew bundle cleanup --file=-
To execute them, add the --force flag.
- Discard external edits:
chezmoi apply .crazyconfig - Keep external edits and add them to the repo:
chezmoi re-add .crazyconfig