1f6b042b26
Use includeIf so Linux prefers libsecret with cache fallback, while macOS keeps osxkeychain. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
197 B
Bash
Executable File
12 lines
197 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo 'Init git config'
|
|
src=$HOME/.gitconfig
|
|
if [ -f $src ]; then
|
|
mv $src $src.bak
|
|
fi
|
|
ln -s $HOME/.dotfile/git/.gitconfig $src
|
|
|
|
chmod +x "$HOME/.dotfile/git/git-credential-linux.sh"
|
|
|