自制禁用curl配置文件。如何设置no_proxy来获取没有代理的包?

自制禁用curl配置文件。如何设置no_proxy来获取没有代理的包?,curl,homebrew,Curl,Homebrew,我已使用以下行设置了我的.bashrc: export {no_proxy,NO_PROXY}=localhost,127.0.0.1 并测试curl是否在无_代理的情况下工作: /usr/bin/curl https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.8.2.tar.gz --connect-timeout 5 这很有效 使用curl升级包以获取二进制文件会导致错误: ==> Upgrading libressl

我已使用以下行设置了我的.bashrc:

export {no_proxy,NO_PROXY}=localhost,127.0.0.1
并测试curl是否在无_代理的情况下工作:

/usr/bin/curl https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.8.2.tar.gz --connect-timeout 5
这很有效

使用
curl
升级包以获取二进制文件会导致错误:

==> Upgrading libressl

Downloading https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.8.2.tar.gz
/usr/bin/curl -q --show-error https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.8.2.tar.gz --connect-timeout 5
错误是:

 Could not resolve proxy: proxy.[MY_PROXY_NAME]
Error: An exception occurred within a child process:
因为curl包含一个-q命令:

   -q, --disable
          If  used  as the first parameter on the command line, the curlrc
          config file will not be read and used.
我试过命令:

$ no_proxy=localhost brew upgrade -verbose
但这仍然不起作用。如何绕过curlrc跳过自制程序