From 785045abe5fefb87d251e4feab1d6a8da4a5f2af Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 12 Mar 2021 22:45:01 +0800 Subject: Remove proxy config --- .zshrc | 14 -------------- 1 file changed, 14 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index c12e265..3429007 100644 --- a/.zshrc +++ b/.zshrc @@ -18,12 +18,6 @@ HISTFILE=~/.zsh_history [[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh -# proxy -export http_proxy=http://127.0.0.1:7890 -export https_proxy=http://127.0.0.1:7890 -export all_proxy=socks5://127.0.0.1:7890 -export no_proxy=localhost,127.0.0.1 - # System Specific case `uname` in Darwin) @@ -48,14 +42,6 @@ FreeBSD) ;; esac -# WSL 2 -if [[ `uname -a` =~ "microsoft" ]]; then - export hostip=$(cat /etc/resolv.conf | grep -oP '(?<=nameserver\ ).*') - export http_proxy="socks5://${hostip}:7890" - export https_proxy="socks5://${hostip}:7890" - export all_proxy="socks5://${hostip}:7890" -fi - # zplug if [ ! -d ~/.zplug ]; then echo 'Installing zplug ... ' -- cgit v1.2.3