From 59695984c58559eba1166052a6c763d73b6464be Mon Sep 17 00:00:00 2001 From: Ezri Brimhall Date: Wed, 6 Mar 2024 17:03:05 -0700 Subject: [PATCH] Added git config --- .config/yadm/bootstrap | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 4737753..d735846 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -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