#vpn export PROXY_IP="192.168.142.238:7890" alias VpnOn='export http_proxy=$PROXY_IP; export https_proxy=$PROXY_IP' unsetspecificproxy() { if [ "$http_proxy" = "$PROXY_IP" ]; then unset http_proxy fi if [ "$https_proxy" = "$PROXY_IP" ]; then unset https_proxy fi } alias VpnOff='unsetspecificproxy'