http://www.webupd8.org/2010/10/how-to-set-proxy-for-terminal-quick.html
即
export http_proxy='http://xxxx:xxx'
取消代理:
unset http_proxy