tips-n-tricks: don't encourage sudo

Closes Homebrew/homebrew#43363.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Alex Dunn 2015-08-28 09:10:38 -07:00
parent fa1cc67e9f
commit 23142bb226

View File

@ -86,14 +86,6 @@ http_proxy=http://<proxyhost>:<proxyport> brew install $FORMULA
http_proxy=http://<user>:<password>@<proxyhost>:<proxyport> brew install $FORMULA http_proxy=http://<user>:<password>@<proxyhost>:<proxyport> brew install $FORMULA
``` ```
**NB:** this technique will also work if you prefer to use `sudo` with Homebrew. But as `sudo` clears the environment before executing Homebrew, your proxy settings may get lost.
**Workaround:**
```bash
$ http_proxy=http://<proxyhost>:<proxyport> sudo -E brew install $FORMULA
```
## Installing stuff without the Xcode-CLT ## Installing stuff without the Xcode-CLT
```sh ```sh