Skip to content

Instantly share code, notes, and snippets.

@maveonair
Last active December 9, 2015 19:29
Show Gist options
  • Save maveonair/4317367 to your computer and use it in GitHub Desktop.
Save maveonair/4317367 to your computer and use it in GitHub Desktop.
#!/bin/ksh
function proxy(){
export http_proxy="http://localhost:8080/"
export https_proxy="http://localhost:8080/"
export ftp_proxy="http://localhost:8080/"
export no_proxy="localhost,127.0.0.1,localaddress"
echo -e "\nProxy environment variable set."
}
function proxyoff(){
unset HTTP_PROXY
unset http_proxy
unset HTTPS_PROXY
unset https_proxy
unset FTP_PROXY
unset ftp_proxy
echo -e "\nProxy environment variable removed."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment