feat: split git credential config by OS on Linux and macOS

Use includeIf so Linux prefers libsecret with cache fallback, while macOS keeps osxkeychain.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-25 11:04:15 +08:00
parent e8aae9738b
commit 1f6b042b26
5 changed files with 37 additions and 0 deletions
+2
View File
@@ -7,3 +7,5 @@ if [ -f $src ]; then
fi
ln -s $HOME/.dotfile/git/.gitconfig $src
chmod +x "$HOME/.dotfile/git/git-credential-linux.sh"