diff options
author | gxlin <[email protected]> | 2021-03-12 22:45:01 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-03-12 22:45:01 +0800 |
commit | 785045abe5fefb87d251e4feab1d6a8da4a5f2af (patch) | |
tree | f8ead45d1fe7e78bb524a309e3501fb51e494f6e | |
parent | 27c10d02727974a6891f055f37a04c845e2b8a77 (diff) | |
download | dotfiles-785045abe5fefb87d251e4feab1d6a8da4a5f2af.tar.gz dotfiles-785045abe5fefb87d251e4feab1d6a8da4a5f2af.tar.bz2 dotfiles-785045abe5fefb87d251e4feab1d6a8da4a5f2af.zip |
Remove proxy config
-rw-r--r-- | .zshrc | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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 ... ' |