Finished cleanup

This commit is contained in:
2017-10-14 22:52:13 +02:00
parent ee2a05a99a
commit 99c7cc50a8
6 changed files with 35 additions and 25 deletions

View File

@@ -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 "$@"