Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/touero/sharpbelly

A shell program for setting host agents for wsl.
https://github.com/touero/sharpbelly

proxy shell wsl wsl2

Last synced: about 1 month ago
JSON representation

A shell program for setting host agents for wsl.

Awesome Lists containing this project

README

        

sharpbelly





## Repository Introduction

In actual development, it is necessary to use proxies in wsl. This repository provides support for quickly setting proxies and quickly canceling proxy settings in wsl.

## Install

This project uses [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) [Git](https://git-scm.com/) Go check them out if you don't have them locally installed.

```shell
$ git clone https://github.com/weiensong/wslProxy.git

# ❗ Enter the pull directory and set the port in it ❗

# move to /data/tools
$ sudo mv proxy.sh /data/tools/proxy.sh

# ❗ Confirm the shell used, currently using zsh, set to alias ❗

$ nvim ~/.zshrc
# Add the following content:
alias proxy='source /data/tools/proxy.sh'

$ source ~/.zshrc
```

## Usage
❗❗❗At the same time, ensure that your proxy client allows LAN proxies, that is, Allow LAN. ❗❗❗
```sh
# Enable Proxy
$ proxy set

# Disable Proxy
$ proxy unset

# Output proxy information
$ proxy check

# View proxy parameters
$ proxy help

# Test proxy
$ curl google.com
```

## Related Repository

- [zsh](https://github.com/zsh-users/zsh) — Mirror of the Z shell source code repository
- [clash](https://github.com/Dreamacro/clash) — A rule-based tunnel in Go
- [v2rayN](https://github.com/2dust/v2rayN) — A GUI client for Windows, support Xray core and v2fly core and others
- [ohmyzsh](https://github.com/ohmyzsh/ohmyzsh) — delightful community-driven (with 2,100+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

## Related Efforts

- [wsl](https://learn.microsoft.com/en-us/windows/wsl/install)

## Maintainers

[@weiensong](https://github.com/weiensong)

## Contributing

Feel free to dive in! [Open an issue](https://github.com/weiensong/wslProxy/issues) or submit PRs.

Standard Python follows the Shell Code of Conduct.

### Contributors

This project exists thanks to all the people who contribute.

## License

[MIT](https://github.com/weiensong/weiensong/blob/main/.universal/LICENSE) © weiensong