mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
fix(typo): update typo with code in script for initiating proxy configuration for terminal or shell
This commit is contained in:
parent
ec5bbf1bf8
commit
f4c8bf2011
@ -68,11 +68,11 @@ $ vim ~/.zshrc
|
|||||||
# session proxy switch shortcut
|
# session proxy switch shortcut
|
||||||
function proxy_on() {
|
function proxy_on() {
|
||||||
export http_proxy=http://127.0.0.1:7890
|
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"
|
echo -e "global proxy for the current terminal session has turned on"
|
||||||
}
|
}
|
||||||
|
|
||||||
function proxy_off(){
|
function proxy_off() {
|
||||||
unset http_proxy https_proxy
|
unset http_proxy https_proxy
|
||||||
echo -e "global proxy for the current terminal session has turned off"
|
echo -e "global proxy for the current terminal session has turned off"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user