Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdeepd/setproxy
A Proxy Manager for Windows
https://github.com/jdeepd/setproxy
configuration-management powershell powershell-script proxy proxy-configuration pwsh-scripts
Last synced: 5 days ago
JSON representation
A Proxy Manager for Windows
- Host: GitHub
- URL: https://github.com/jdeepd/setproxy
- Owner: JDeepD
- License: mit
- Created: 2022-12-22T08:32:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T21:42:16.000Z (almost 2 years ago)
- Last Synced: 2024-11-12T06:34:36.915Z (2 months ago)
- Topics: configuration-management, powershell, powershell-script, proxy, proxy-configuration, pwsh-scripts
- Language: PowerShell
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Proxy Manager for Windows
### Set proxy configs for tools like git, npm with just a single command.
## Installation:
## Pre-requisites:
### [Powershell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3)
### [gsudo](https://github.com/gerardog/gsudo)#### 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
```
#### Interactive Proxy switching
```
setproxy
```
#### Unset all proxies
```
setproxy unset
```## Plus Tip: Use setproxy with [fzf](https://github.com/junegunn/fzf) for an even smoother experience.
### Put this in your `$PROFILE` (Powershell 7)
```ps1
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.
https://user-images.githubusercontent.com/64089730/225298255-34f6bd21-9687-46e9-b214-23c5e44d12e3.mp4
### Inspired from [proxyman](https://github.com/himanshub16/ProxyMan) and [nits-proxy](https://github.com/resyfer/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)