diff --git a/.bash_profile b/.bash_profile index 5788e36..01830bf 100644 --- a/.bash_profile +++ b/.bash_profile @@ -49,12 +49,12 @@ proml # Set git autocompletion -if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then - . /usr/local/git/contrib/completion/git-completion.bash +if [ -f /usr/local/etc/bash-completion ]; then + . /usr/local/etc/bash-completion fi -if [ -f /opt/local/etc/bash_completion ]; then - . /opt/local/etc/bash_completion +if [ -f /usr/local/etc/bash_completion ]; then + . /usr/local/etc/bash_completion fi export TERM="xterm-256color" diff --git a/.gitconfig b/.gitconfig index b843908..b13db38 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,8 +1,8 @@ [user] - name = Jeffrey Heifetz - email = jheifetz@blackberry.com + name = Chris DelCol + email = chris.delcol@gmail.com [github] - user = jeffheifetz + user = cdelcol [color] ui = true status = auto diff --git a/README b/README index a46502c..66307f7 100644 --- a/README +++ b/README @@ -1 +1,3 @@ Running the configure script should set everything up + +Optionally, run "./configure update" and you can personalize your git/github settings diff --git a/configure.sh b/configure.sh index b213b21..6857fd6 100755 --- a/configure.sh +++ b/configure.sh @@ -9,3 +9,19 @@ sudo ln -fs $Repo/.iterm $HOME/.iterm sudo ln -fs $Repo/.ssh/config $HOME/.ssh/config sudo ln -fs $Repo/.vim $HOME/.vim sudo ln -fs $Repo/.vimrc $HOME/.vimrc + +# setup some personalized entries via question/answer +if [ "$1" == "update" ]; then + echo "Enter your name used for git and press [ENTER]:" + read git_name + + echo "Enter your email address usde for git and press [ENTER]:" + read git_email + + echo "Enter your Github user id and press [ENTER]:" + read github_user + + git config --global user.name "$git_name" + git config --global user.email "$git_email" + git config --global github.user "$github_user" +fi