mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[provisioning] Configure git identity
This commit is contained in:
parent
92f2b9cc32
commit
59c525064d
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
||||||
# Description: The Git version control system
|
# Description: The Git version control system
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
GIT_NAME="Correl Roush"
|
||||||
|
GIT_EMAIL="correl@gmail.com"
|
||||||
|
|
||||||
case $_PLATFORM in
|
case $_PLATFORM in
|
||||||
darwin)
|
darwin)
|
||||||
_recipe brew
|
_recipe brew
|
||||||
|
@ -23,3 +26,6 @@ function _git {
|
||||||
echo "[git] $dest already exists, skipping."
|
echo "[git] $dest already exists, skipping."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
git config --global user.email || _run "[git] Setting user.email to '$GIT_EMAIL'" git config --global user.email $GIT_EMAIL
|
||||||
|
git config --global user.name || _run "[git] Setting user.name to '$GIT_NAME'" git config --global user.name $GIT_NAME
|
||||||
|
|
Loading…
Reference in a new issue