毎度、忘れるのでメモ。
ターミナル
.bash_profileに書く
export http_proxy=http://$your_proxy
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
zsh使いの人用).zshenvに書く
http_proxy=http://$your_proxy
https_proxy=$http_proxy
HTTP_PROXY=$http_proxy
HTTPS_PROXY=$http_proxy
git
git config --global http.proxy $http_proxy
git config --global https.proxy $http_proxy
npmに設定
npm -g config set proxy $http_proxy
npm -g config set https-proxy $http_proxy
curl
.curlrcに追記
proxy=http://$your_proxy