https://github.com/blocklune/proxy-utils
Scripts for fast setting of the system proxy environment variables
https://github.com/blocklune/proxy-utils
Last synced: over 1 year ago
JSON representation
Scripts for fast setting of the system proxy environment variables
- Host: GitHub
- URL: https://github.com/blocklune/proxy-utils
- Owner: BlockLune
- License: mit
- Created: 2025-03-17T11:13:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T13:15:14.000Z (over 1 year ago)
- Last Synced: 2025-03-17T14:28:52.282Z (over 1 year ago)
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Proxy Utils
Scripts for fast setting of the system proxy environment variables.
Inspired by:
- [SukkaW/zsh-proxy](https://github.com/SukkaW/zsh-proxy)
- [escalate/oh-my-zsh-proxy-plugin](https://github.com/escalate/oh-my-zsh-proxy-plugin/)
## Installation
### As an Oh-My-Zsh Plugin
1. Clone the repository into the Oh-My-Zsh custom plugins directory:
```shell
git clone https://github.com/BlockLune/proxy-utils.git ~/.oh-my-zsh/custom/plugins/proxy-utils --depth=1
```
2. Copy the configuration file:
```shell
cp -r ~/.oh-my-zsh/custom/plugins/proxy-utils/example/.proxy/ ~
```
3. Update the zsh configuration file:
```zsh
plugin=(... proxy-utils)
```
4. Restart the terminal.
### As a Standalone Script
1. Clone the repository:
```shell
git clone https://github.com/BlockLune/proxy-utils.git --depth=1
```
2. Copy the configuration file:
```shell
cp -r proxy-utils/example/.proxy/ ~
```
3. Update your shell configuration file:
```shell
source /path/to/proxy-utils/proxy_utils.sh
```
4. Restart the terminal.
## Usage
```shell
# 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
```