dotfiles/git/setup.sh
2017-10-14 22:52:13 +02:00

20 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
function main()
{
if ! brew list | grep git >/dev/null; then
brew install git
fi
if [ ! -f "${HOME}/.gitconfig" ]; then
cat << EOF > ${HOME}/.gitconfig
[include]
path = ${DOTFILES}/git/gitconfig
[core]
excludesfile = ${DOTFILES}/git/gitignore_global
EOF
fi
}
main "$@"