From 6861ff1e162ed94bb739d1572604c814fae50c63 Mon Sep 17 00:00:00 2001 From: Brian Pooe Date: Mon, 6 Jul 2026 21:16:17 +0200 Subject: [PATCH] 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 --- .gitconfig | 6 ++++++ .zshrc | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.gitconfig b/.gitconfig index fd7a74e..837fa89 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 diff --git a/.zshrc b/.zshrc index ce3dcb6..4a03ce2 100644 --- a/.zshrc +++ b/.zshrc @@ -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"