feat: add local override hooks for zsh and git

~/.zshrc.local and ~/.gitconfig.local hold machine-specific settings
(secrets, work identity, installer PATH additions) so third-party
installers stop dirtying the tracked configs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Brian Pooe 2026-07-06 21:16:17 +02:00
parent 5123fb4349
commit 6861ff1e16
2 changed files with 11 additions and 0 deletions

View file

@ -53,3 +53,9 @@ default = simple
[core]
editor=nvim
pager = less -x4
# Machine-specific overrides (e.g. a work identity via includeIf).
# Git silently skips this if the file doesn't exist. Keep last so
# local settings win.
[include]
path = ~/.gitconfig.local

5
.zshrc
View file

@ -128,3 +128,8 @@ fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Machine-specific overrides (secrets, work proxies, installer PATH
# additions). Never tracked in the repo — keep this line last so local
# settings win.
[ -f "$HOME/.zshrc.local" ] && source "$HOME/.zshrc.local"