luojinghui / switch

switch SDN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

switch

Switch DNS for pre env

SYNOPSIS

$ switch [--options]

OPTIONS

# switch default dns env
$ switch
# switch pre env
$ switch -p

Installation

Oh-My-Zsh

  1. 终端执行:
$ git clone git@github.com:luojinghui/switch.git $ZSH_CUSTOM/plugins/switch
  1. Edit ~/.zshrc:
...
plugins=(... switch)
  1. Reload source:source .zshrc

Update

$ rm -rf $ZSH_CUSTOM/plugins/switch && git clone git@github.com:luojinghui/switch.git $ZSH_CUSTOM/plugins/switch

Less is more

Super simple open method:

# config oh-my-zsh alias
$ alias set="switch"

then set -p to change pre env..

About

switch SDN


Languages

Language:Shell 100.0%