Skip to content
Browse files

tweaks to the git setup script

  • Loading branch information...
1 parent 81490f9 commit 49d4b0e391d4675d9c507c8f3df34d57a842aaf8 @k-anderson k-anderson committed Jun 14, 2011
Showing with 16 additions and 1 deletion.
  1. +16 −1 bin/git_setup.sh
View
17 bin/git_setup.sh
@@ -71,14 +71,27 @@ fSetupUser() {
echo "# git config ${CLEVEL}user.email $EMAIL"
git config ${CLEVEL}user.email "$EMAIL"
-
}
fEnableRerere() {
echo "# git config ${CLEVEL}rerere.enabled 1"
git config ${CLEVEL}rerere.enabled 1
}
+fEnableColor() {
+ echo "# git config ${CLEVEL}color.ui true"
+ git config ${CLEVEL}color.ui true
+}
+
+fLineEndingPrefs() {
+ echo "# git config ${CLEVEL}core.autocrlf input"
+ git config ${CLEVEL}core.autocrlf input
+ # git config --global core.autocrlf true ## Windows
+
+ echo "# git config ${CLEVEL}core.safecrlf true"
+ git config ${CLEVEL}core.safecrlf true
+}
+
cd `dirname $0`
clear
@@ -90,6 +103,8 @@ fGetEmail
fSetupUser
fEnableRerere
+fEnableColor
+fLineEndingPrefs
echo "Git configuration complete."

0 comments on commit 49d4b0e

Please sign in to comment.
Something went wrong with that request. Please try again.