Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/escalate/oh-my-zsh-proxy-plugin
An oh-my-zsh plugin to quickly enable and disable proxy shell environment settings
https://github.com/escalate/oh-my-zsh-proxy-plugin
oh-my-zsh oh-my-zsh-plugin proxy zsh
Last synced: 26 days ago
JSON representation
An oh-my-zsh plugin to quickly enable and disable proxy shell environment settings
- Host: GitHub
- URL: https://github.com/escalate/oh-my-zsh-proxy-plugin
- Owner: escalate
- License: mit
- Created: 2017-07-20T10:13:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T13:16:59.000Z (10 months ago)
- Last Synced: 2024-11-15T18:34:21.895Z (about 1 month ago)
- Topics: oh-my-zsh, oh-my-zsh-plugin, proxy, zsh
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Test](https://github.com/escalate/oh-my-zsh-proxy-plugin/actions/workflows/test.yml/badge.svg?branch=master&event=push)](https://github.com/escalate/oh-my-zsh-proxy-plugin/actions/workflows/test.yml)
# oh-my-zsh proxy plugin
An [oh-my-zsh](https://ohmyz.sh) plugin to quickly enable and disable proxy shell environment settings.
## Installation
Clone repository into oh-my-zsh custom plugins directory
```bash
$ git clone https://github.com/escalate/oh-my-zsh-proxy-plugin.git ~/.oh-my-zsh/custom/plugins/proxy
```Copy example proxy settings
```
cp -r ~/.oh-my-zsh/custom/plugins/proxy/.proxy-example/ ~/.proxy
```Enable proxy plugin in ~/.zshrc configuration
```
plugins=(proxy)
```## Configuration
Proxy environment settings can be configured inside the following files:
* ~/.proxy/http_proxy
* ~/.proxy/https_proxy
* ~/.proxy/ftp_proxy
* ~/.proxy/rsync_proxy
* ~/.proxy/all_proxy
* ~/.proxy/no_proxyOnly the value of the corresponding environment variable must be stored in the files.
## Enable / Disable proxy environment settings by default
The proxy environment settings are disabled by default.
To enable proxy environment settings with every new shell, the corresponding function must be called within the `~/.zshrc` configuration file.
```bash
...
plugins=(proxy)
...
proxy
```## Usage
### Enable proxy environment settings
```bash
$ enable_proxyor
$ proxy
```### Disable proxy environment settings
```bash
$ disable_proxyor
$ noproxy
```### List current proxy environment settings
```bash
$ list_proxyor
$ lsproxy
```## License
MIT