目次
proxy_name="http://username:password@host:port"
switch_trigger=Automatic
if [ "`networksetup -getcurrentlocation`" = "$switch_trigger" ]; then
export http_proxy=$proxy_name
export https_proxy=$proxy_name
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
figit config --global user.name username
git config --global user.email emailaddress
git config --global http.proxy http://username:password@host:port
git config --global https.proxy http://username:password@host:portgit config -lyarn config set -g proxy http://example.com:port // ID & Passなし
yarn config set -g proxy http://username:password@host:port // ID & Passありyarn config listnpm -g config set proxy "http://username:password@host:port"
npm -g config set https-proxy "http://username:password@host:port"
npm -g config set registry "https://registry.npmjs.org/"npm config listproxy "http://user:password@host:port"
https-proxy "http://user:password@host:port"
registry "https://registry.npmjs.org/"