Finished cleanup
This commit is contained in:
13
git/setup.sh
13
git/setup.sh
@@ -1,16 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function setup_git()
|
||||
function main()
|
||||
{
|
||||
brew install git
|
||||
if ! brew list | grep git >/dev/null; then
|
||||
brew install git
|
||||
fi
|
||||
|
||||
cat << EOF > ${HOME}/.gitconfig
|
||||
if [ ! -f "${HOME}/.gitconfig" ]; then
|
||||
cat << EOF > ${HOME}/.gitconfig
|
||||
[include]
|
||||
path = ${DOTFILES}/git/gitconfig
|
||||
[core]
|
||||
excludesfile = ${DOTFILES}/git/gitignore_global
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
export DOTFILES=/Users/thomas/dotfiles
|
||||
setup_git
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user