atom 346 B

1234567891011121314
  1. #!/bin/bash
  2. set -o errexit -o pipefail
  3. if [[ "$OS" = "Darwin" ]]; then
  4. gimme_pkg atom
  5. defaults write com.github.atom ApplePressAndHoldEnabled -bool false
  6. else
  7. if ! has atom; then
  8. URL='https://atom.io/download/deb'
  9. TMP_FILE="/tmp/gimme.atom.latest.deb"
  10. curl -fSLC- "$URL" -o "$TMP_FILE"
  11. sudo dpkg -i "$TMP_FILE"
  12. rm "$TMP_FILE"
  13. fi
  14. fi