Proxycli
proxycli(){
if [[ "$proxycli" == "false" || -z "$proxycli" ]]
then
export proxycli="true"
export HTTP_PROXY="http://127.0.0.1:8080"
export http_proxy="http://127.0.0.1:8080"
export HTTPS_PROXY="http://127.0.0.1:8080"
export https_proxy="http://127.0.0.1:8080"
echo -e "\033[32mProxied to localhost:8080\033[0m"
else
proxycli="false"
unset http_proxy
unset https_proxy
unset HTTP_PROXY
unset HTTPS_PROXY
echo -e "\033[31mCleared proxy vars\033[0m"
fi
}Last updated