git 277 B

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