Added git config

This commit is contained in:
Ezri Brimhall 2024-03-06 17:03:05 -07:00
parent 92e10cc756
commit 59695984c5
Signed by: ezri
GPG Key ID: D4EE46AFBD899DB5

View File

@ -45,3 +45,18 @@ function pyenv_install() {
if [[ ! -d $HOME/.pyenv ]]; then
pyenv_install
fi
# Git configuration
# Assume that if the git config file exists, I've already set up my git config
if [[ ! -f $HOME/.gitconfig ]]; then
echo "Which email address should this machine use for git?"
read "email?> "
git config --global user.email $email
git config --global user.name "Ezri Brimhall"
git config --global commit.gpgsign true
git config --global defaultBranch main
git config --global pull.rebase false
git config --global checkout.defaultRemote origin
git config --global log.date human
git config --global log.showSignature true
fi