git 383 B

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