Skip to content

Instantly share code, notes, and snippets.

View kesavabjs2's full-sized avatar

Kesava Bandlapalli kesavabjs2

View GitHub Profile
@kesavabjs2
kesavabjs2 / .bashrc
Last active October 4, 2018 10:05 — forked from patik/.bashrc
Bash configure proxy for corporate network
# configure proxy for git while on corporate network
# From https://gist.github.com/garystafford/8196920 and https://gist.github.com/patik/6d40ded40bf93c2f381b
function proxy_on(){
# assumes $USERDOMAIN, $USERNAME, $USERDNSDOMAIN
# are existing Windows system-level environment variables
# assumes $PASSWORD, $PROXY_SERVER, $PROXY_PORT
# are existing Windows current user-level environment variables (your user)
# environment variables are UPPERCASE even in git bash