fix(typo): update typo with code in script for initiating proxy configuration for terminal or shell

This commit is contained in:
Anda Toshiki 2024-03-19 11:11:45 -07:00
parent ec5bbf1bf8
commit f4c8bf2011

View File

@ -68,11 +68,11 @@ $ vim ~/.zshrc
# session proxy switch shortcut
function proxy_on() {
export http_proxy=http://127.0.0.1:7890
export https_proxy=\$http_proxy
export https_proxy=$http_proxy
echo -e "global proxy for the current terminal session has turned on"
}
function proxy_off(){
function proxy_off() {
unset http_proxy https_proxy
echo -e "global proxy for the current terminal session has turned off"
}