add proxy server

This commit is contained in:
blacknet76
2021-01-19 20:04:51 +01:00
parent fbd50336fe
commit 819833ece3
+12 -1
View File
@@ -34,4 +34,15 @@ else
if (( $+commands[neofetch] && $+commands[lolcat] )); then if (( $+commands[neofetch] && $+commands[lolcat] )); then
neofetch | lolcat neofetch | lolcat
fi fi
fi fi
# Set Proxy
function setproxy() {
export {http,https,ftp}_proxy="http://vm-ubuntu-docker:8888"
export no_proxy=localhost,127.0.0.1,192.168.16.0/24
}
# Unset Proxy
function unsetproxy() {
unset {http,https,ftp}_proxy
}