Refactoring and pretty printing of information

This commit is contained in:
thomas committed 2017-10-15 00:01:00 +02:00
1 parent 99c7cc50a8
commit f0f2988423
7 files changed
+106 -40

No files matched your search

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