LoginSignup
23
21

More than 5 years have passed since last update.

proxy設定まとめ(Mac開発環境)

Last updated at Posted at 2015-03-18

毎度、忘れるのでメモ。

ターミナル

.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
23
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
21