Git Product home page Git Product logo

setproxy's Introduction

A Proxy Manager for Windows

Set proxy configs for tools like git, npm with just a single command.

Installation:

Pre-requisites:

1. Manual Installation

Clone the repository

git clone https://github.com/JDeepD/SetProxy.git

Run install.ps1

pwsh .\install.ps1

To update the tool, pull all the changes and run:

pwsh .\install.ps1 -update

Commands:

Create a profile

setproxy create

Show all profiles

setproxy list

Switch to a profile by nickname

setproxy <nickname>

Interactive Proxy switching

setproxy

Unset all proxies

setproxy unset

Plus Tip: Use setproxy with fzf for an even smoother experience.

Put this in your $PROFILE (Powershell 7)

function fpx{
    $selection=$(setproxy fzflist | fzf --height 40% --pointer=' ' --border --info=inline --prompt='' --color=fg+:#FFFFFF,bg+:#FF0000,gutter:-1 --exact) -split '\s+' | Select-Object -First 1;
    setproxy $selection
}

And run fpx to witness sorcery.

PowerShell.2023-03-12.00-55-05_Trim.mp4

Inspired from proxyman and nits-proxy


TODO

  • Make installation procedure smoother (preferably through package managers like winget or scoop)
  • Convert to Powershell module which allows easy installation an updates
  • Support for proxy bypasses
  • Eliminate some dependencies(gsudo for example)
  • (maybe) Integrate tightly with fzf so that it does not have 2 different interfaces
  • (maybe) An cross-platform Proxy manager which works for both Windows and Unix based systems
  • (maybe) A GUI tool for managing proxy configurations

Feedback

  • Integrate tightly with fzf so that it does not have 2 different interfaces
  • An cross-platform Proxy manager which works for both Windows and Unix based systems
  • A GUI tool for managing proxy configurations
  • update pulled from git by itself
  • there was some ability to make a new shell with the proxy settings applied so that it doesnt interfere with globals (probs wouldnt work for windows networking but for the other two it would be nice)
  • could specify the commands to run in the config (could add more apps etc)

setproxy's People

Contributors

jdeepd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashishamar99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.