Git reads both, and ~/.gitconfig wins. Linking only the XDG path left the stale ~/.gitconfig in charge, so system76 kept signing commits as a previous employer even after the cutover appeared to succeed — the symlink was correct and had no effect.
28 lines
785 B
YAML
28 lines
785 B
YAML
# Links every host gets, whatever it is. Anything that depends on the machine
|
|
# belongs in meta/hosts/<hostname>.conf.yaml instead.
|
|
- defaults:
|
|
link:
|
|
create: true
|
|
relink: true
|
|
force: true
|
|
|
|
- clean: ['~', '~/.config']
|
|
|
|
- create:
|
|
- ~/downloads
|
|
- ~/projects
|
|
- ~/documents
|
|
- ~/.local/bin # a real directory now, owned by package managers
|
|
- ~/.local/share/go
|
|
- ~/.config/git
|
|
|
|
- link:
|
|
~/.zshenv: common/zsh/zshenv
|
|
~/.zshrc: common/zsh/zshrc
|
|
~/.config/nvim: common/nvim
|
|
~/.config/htop: common/htop
|
|
~/.config/lf: common/lf
|
|
~/.config/starship.toml: common/starship.toml
|
|
~/.gitconfig: common/git/config
|
|
~/.ssh/config: common/ssh/config
|