zsh

# 代理
export http_proxy="http://127.0.0.1:3000"
export https_proxy="http://127.0.0.1:3000"

# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# 修改主题
vim .zshrc
ZSH_THEME="sonicradish"

# 下载zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

# 配置zsh-autosuggestions
vim .zshrc
plugins=(
        git
        zsh-autosuggestions
        )

# 代理开关函数
vim .zshrc
function proxy_on() {
    export http_proxy="http://127.0.0.1:3000"
    export https_proxy="http://127.0.0.1:3000"
    echo -e "代理已开启"
}
function proxy_off() {
    unset http_proxy https_proxy
    echo -e "代理已关闭"
}