proxy () {
  export http_proxy="http://127.0.0.1:7890"
  export https_proxy="http://127.0.0.1:7890"
  npm config set proxy http://127.0.0.1:7890
  npm config set https-proxy http://127.0.0.1:7890

  #export all_proxy="socks5://127.0.0.1:7890"
  echo "Clash Proxy:ON"
}

noproxy () {
  unset http_proxy
  unset https_proxy
  unset all_proxy
  npm config delete proxy
  npm config delete https-proxy
  echo "Clash Proxy:OFF"
}
