From 6e822336a21a736764e337c96a3a8bddac428a4e Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Wed, 6 Mar 2024 11:25:55 -0300 Subject: [PATCH] feat: add git config at install script --- install.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index af3ed16..51ab6d7 100644 --- a/install.sh +++ b/install.sh @@ -1,13 +1,19 @@ #!/bin/bash -echo "[1/2] Creating the Projects folder..." +read -p "What is your email? " GIT_EMAIL + +print "\nPlease wait! It will configure your environment. \n" +echo "[1/3] Creating the Projects folder..." mkdir ~/Projects -echo "[2/2] Setting up dotfiles..." +echo "[2/3] Setting up dotfiles..." git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles cd ~/.dotfiles stow --dotfiles git -echo "Success Everythings is ready!" -echo "Have a nice day!" +echo "[3/3] Configuring Git..." +git config --global user.email $GIT_EMAIL + +printf "\nSuccess Everythings is ready!" +printf "\nHave a nice day!"