Last active
December 9, 2015 19:29
-
-
Save maveonair/4317367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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