Bypassing prompt (to press return) in homebrew install script

Reading the source of https://raw.github.com/Homebrew/homebrew/go/install — it only prompts if stdin is a TTY. If you redirect stdin from /dev/null, it won’t prompt at all. So:

ruby \
  -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \
  </dev/null

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)