Skip to content

Instantly share code, notes, and snippets.

View cedric-legallo's full-sized avatar

Cedric Le Gallo cedric-legallo

View GitHub Profile
@manekinekko
manekinekko / set_proxy.sh
Last active May 4, 2019 12:35
Toggling Proxy Settings for Git, NPM, Bower and Package Control (Mac OS X) automatically
#! /bin/sh
proxy="YOUR_PROXY"
if [ "$1" == "on" ]; then
echo "exporting proxy"
export http_proxy=$proxy
export https_proxy=$proxy