A zsh plugin for managing shell environment proxy settings.
$ZSH_CUSTOM/plugins
(by default ~/.oh-my-zsh/custom/plugins
)git clone https://github.com/xooooooooox/zsh-proxy ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-proxy
.zshrc
file:Add one of the following to your .zshrc
file:
From GitCode:
zinit snippet 'https://raw.gitcode.com/xooooooooox/zsh-proxy/raw/main/zsh-proxy.plugin.zsh'
From GitHub:
zinit light xooooooooox/zsh-proxy
Add the following to your .zshrc
file:
antigen bundle xooooooooox/zsh-proxy
git clone https://github.com/xooooooooox/zsh-proxy ${ZDOTDIR:-~}/.zprezto/contrib/zsh-proxy
.zpreztorc
file:zstyle ':prezto:load' pmodule \ ... \ 'zsh-proxy' \ ...
git clone https://github.com/xooooooooox/zsh-proxy ~/.zsh/zsh-proxy
.zshrc
file:source ~/.zsh/zsh-proxy/zsh-proxy.plugin.zsh
This will prompt you to enter:
proxy
Enable proxy settings noproxy
Disable proxy settings lsproxy
Display current proxy settings
The plugin manages the following environment variables:
http_proxy
/ HTTP_PROXY
https_proxy
/ HTTPS_PROXY
all_proxy
/ ALL_PROXY
no_proxy
/ NO_PROXY
To enable automatic proxy activation on shell startup, edit ${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto
:
# Disable auto proxy (default) echo "0" >"${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto" # Enable auto proxy echo "1" >"${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/auto"
All configuration files are stored in ${XDG_CONFIG_HOME-${HOME}}/zsh-proxy/
:
auto
: Controls automatic proxy activationhttp
: HTTP proxy URLsocks5
: SOCKS5 proxy URLno_proxy
: Comma-separated list of domains to bypass proxyRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4