Code Monkey home page Code Monkey logo

set-proxy-to-terminal's Introduction

set-proxy-to-terminal

set proxy to terminal (bash and zsh) (http - https - socks5)

Set Up

Installation prerequisites :

add code :

source $HOME/[Directory]/setProxy

to .zshrc or .bashrc


  • New feature: set proxy to apt or apt-get

help

$ setProxy -h
 --------------------
 $ setProxy [option]

 [option]
    -t | tor                   : set proxy default tor port 9050
    -t2 | tor2                 : set proxy default tor port 9150
    -s [Proxy] | set [Proxy]   : set Proxy custom
    -me | me                   : set proxy default config me (socks5://127.0.0.1:1089)
    -d | --unset | d | unset   : un set Proxy in terminal
    -h | --help | help         : echo Help
    -status | status           : echo Status
    -err                       : echo show Errors

 [Proxy]
    -P [Protcol]               : set Protcol (h = http, hs = https, s5 = socks5) (default s5)
    -H [Host] | Host [Host]    : set Host Proxy custom (default 127.1)
    -p | prot                  : set port Proxy custom (default 9050)

 [Host]
    -H [HostName]              : set Host (127.1, 127.0.0.1 , ::, Hsot external{Domain})

 [example]
    -> example: http://127.0.0.1:1089
    -> example: -s -P h -H 127.1 -p 1089

    -> example: https://127.0.0.1:8889
    -> example: set -P hs -H 127.1 -p 8889

    -> example: socks5://127.0.0.1:9050
    -> example: set -P s5 -H 127.1 -p 9050

 myExample: $ setProxy socks5://127.1:9050
 myExample: $ setProxy set -P s5 -p 9050
 myExample: $ setProxy set -P s5 -H 127.1 -p 9050
 myExample: $ setProxy set -H 0
 myExample: $ setProxy me

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.