https://github.com/bookiu/zsh-plugin-httproxy
An oh-my-zsh HTTP proxy plugin
https://github.com/bookiu/zsh-plugin-httproxy
Last synced: 3 months ago
JSON representation
An oh-my-zsh HTTP proxy plugin
- Host: GitHub
- URL: https://github.com/bookiu/zsh-plugin-httproxy
- Owner: bookiu
- Created: 2019-07-24T10:28:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T10:33:35.000Z (almost 6 years ago)
- Last Synced: 2025-01-29T23:13:22.215Z (4 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oh-my-zsh HTTP proxy plugin
An oh-my-zsh HTTP proxy plugin can let you set http proxy easily by using `setproxy http://127.0.0.1:8080` command
## Requirements
+ oh-my-zsh
## Installation
1. Clone this repository in oh-my-zsh's plugins directory:
```shell
git clone https://github.com/yaxin-cn/zsh-plugin-httproxy ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/httproxy
```2. Activate the plugin in `~/.zshrc`:
```zsh
plugins=( [plugins...] httproxy)
```
3. Source ~/.zshrc to take changes into account:```shell
source ~/.zshrc
```## Usage
1. Set http proxy
```shell
setproxy http://127.0.0.1:8080
```2. Get proxy you set
```shell
getproxy
```3. Unset http proxy
```shell
unsetproxy
```Have fun