git 326 B

12345678910111213
  1. #!/bin/bash
  2. set -o errexit -o pipefail
  3. echo "FAILED"; exit 1
  4. has git || gimme_pkg git
  5. if ! [[ -f "$HOME/.gitconfig" ]]; then
  6. git config --global color.ui true
  7. if [[ "$OS" = "Darwin" ]]; then
  8. git config --global credential.helper "osxkeychain"
  9. else
  10. git config --global credential.helper "cache --timeout=3600"
  11. fi
  12. fi