Refactoring and pretty printing of information

This commit is contained in:
2017-10-15 00:01:00 +02:00
parent 99c7cc50a8
commit f0f2988423
7 changed files with 106 additions and 40 deletions

View File

@@ -1,10 +1,12 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
if ! brew list | grep git >/dev/null; then
brew install git
fi
print_info "Configuring git"
brewget git
if [ ! -f "${HOME}/.gitconfig" ]; then
cat << EOF > ${HOME}/.gitconfig
@@ -14,6 +16,8 @@ function main()
excludesfile = ${DOTFILES}/git/gitignore_global
EOF
fi
print_ok "Git configured"
}
main "$@"