switch
Switch DNS for pre env
SYNOPSIS
$ switch [--options]
OPTIONS
# switch default dns env
$ switch
# switch pre env
$ switch -p
Installation
Oh-My-Zsh
- 终端执行:
$ git clone git@github.com:luojinghui/switch.git $ZSH_CUSTOM/plugins/switch
- Edit
~/.zshrc
:
...
plugins=(... switch)
- 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..