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:
parent
5123fb4349
commit
6861ff1e16
2 changed files with 11 additions and 0 deletions
|
|
@ -53,3 +53,9 @@ default = simple
|
||||||
[core]
|
[core]
|
||||||
editor=nvim
|
editor=nvim
|
||||||
pager = less -x4
|
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
5
.zshrc
|
|
@ -128,3 +128,8 @@ fi
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
[ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue