Refactoring and pretty printing of information
This commit is contained in:
10
git/setup.sh
10
git/setup.sh
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user