Skip to content

Yellster/with-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

with-proxy

A CLI tool that reads proxy configuration from ${HOME}/.env file and sets temporary proxy settings when using the CLI.

Features

  • Automatically reads proxy settings from your ${HOME}/.env file
  • Applies proxy settings only for the command being executed
  • Supports common proxy environment variables (HTTP_PROXY, HTTPS_PROXY, etc.)
  • Simple and easy to use

Installation

cargo install with-proxy

Usage

with-proxy <command> [args...]

For example:

with-proxy curl https://example.com

Configuration

Create a .env file in your home directory with your proxy settings:

https_proxy=http://127.0.0.1:7890
http_proxy=http://127.0.0.1:7890
no_proxy=localhost,127.0.0.1

HTTPS_PROXY=http://127.0.0.1:7890
HTTP_PROXY=http://127.0.0.1:7890
NO_PROXY=localhost,127.0.0.1

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A CLI tool that reads proxy configuration from ${HOME}/.env and sets temporary proxy settings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published