added git settings, including git aliases taken from https://github.com/garybernhardt/dotfiles/

This commit is contained in:
2012-06-01 10:26:27 -07:00
parent 526ce49b7c
commit 8c69a53cbe
4 changed files with 86 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ fi
ROOT=`pwd`
###
# bash_magic
# bash
###
#clone repo
$GIT clone https://github.com/Knewton/bash_magic.git bash/bash_magic
@@ -47,6 +47,17 @@ if [ ! -f "${HOME}"/.bashrc ]; then
ln -s "${HOME}"/.bash_profile "${HOME}"/.bashrc
fi
###
# git
###
echo -n "Enter your git name: "
read NAME
echo -n "Enter you git email: "
read EMAIL
echo -e "[user]\n\tname = ${NAME}\n\temail = ${EMAIL}" > "${HOME}"/.gitconfig
cat git/gitconfig >> "${HOME}"/.gitconfig
cp git/githelpers "${HOME}"/.githelpers
###
# vim
###