Scripts for fast setting of the system proxy environment variables.
Inspired by:
-
Add the module to your Zim configuration file:
zmodule BlockLune/proxy-utils -
Edit the configuration files in
~/.proxy/to set your proxy settings. An example configuration is provided inexample/.proxy/. -
Restart your terminal.
-
Clone the repository into the Oh-My-Zsh custom plugins directory:
git clone --depth=1 https://github.com/BlockLune/proxy-utils.git ~/.oh-my-zsh/custom/plugins/proxy-utils -
Edit the configuration files in
~/.proxy/to set your proxy settings. Or copy the example configuration as a starting point:cp -r ~/.oh-my-zsh/custom/plugins/proxy-utils/example/.proxy/ ~/.proxy/
-
Update the zsh configuration file:
plugin=(... proxy-utils)
-
Restart your terminal.
-
Clone the repository:
git clone https://github.com/BlockLune/proxy-utils.git --depth=1
-
Edit the configuration files in
~/.proxy/to set your proxy settings. Or copy the example configuration as a starting point:cp -r proxy-utils/example/.proxy/ ~/.proxy/ -
Update your shell configuration file:
source /path/to/proxy-utils/proxy_utils.sh -
Restart the terminal.
# Set proxy environment variables
proxy
# Unset proxy environment variables
noproxy
# List proxy environment variables
lsproxy
# Check the current ip address by sending request to ip.sb
myip