GithubHelp home page GithubHelp logo

fish-proxy's Introduction

fish-proxy

A fish shell plugin to configure proxy

It is the fish version of zsh-proxy, thanks to Sukka

Install

use fisher

fisher install kaze-k/fish-proxy

Congratulations! Open a new terminal. If you see following lines, you have successfully installed fish-proxy:

----------------------------------------
You should run following command first:
> init_proxy
----------------------------------------

Usage

init_proxy

The tip mentioned below will show up next time you open a new terminal if you haven't initialized the plugin with init_proxy.

After you run init_proxy, it is time to configure the plugin.

config_proxy

Execute config_proxy will lead you to fish-proxy configuration. Fill in socks5 & http proxy address in format address:port like 127.0.0.1:1080 & 127.0.0.1:8080.

Default configuration of socks5 proxy is 127.0.0.1:1080, and http proxy is 127.0.0.1:8080. You can leave any of them blank during configuration to use their default configuration.

Currently fish-proxy doesn't support proxy with authentication, but I am working on it.

proxy

After you configure the fish-proxy, you are good to go. Try following command will enable proxy for supported package manager & software:

proxy

And next time you open a new terminal, fish-proxy will automatically enable proxy for you.

noproxy

If you want to disable proxy, you can run following command:

noproxy

myip

If you forget whether you have enabled proxy or not, it is fine to run proxy command directly, as proxy will reset all the proxy before enable them. But the smarter way is to use following command to check which IP you are using now:

myip

Check procedure will use curl and the IP data come from ipip.net, ip.cn & ip.gs.

Uninstallation

fisher remove kaze-k/fish-proxy
rm -rf ~/.fish-proxy

Supported

fish-proxy currently support those package manager & software:

  • http_proxy
  • https_proxy
  • ftp_proxy
  • rsync_proxy
  • all_proxy
  • git (http)
  • npm & yarn & pnpm

Thanks

fish-proxy's People

Contributors

kaze-k avatar

Stargazers

Kevalin avatar

Watchers

 avatar

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.