Skip to content

Instantly share code, notes, and snippets.

@enginespot
Forked from valorad/lxcli_proxy.sh
Created September 4, 2017 10:53
Show Gist options
  • Save enginespot/e1b2ccc6e5476c685ea75d47e0d81f53 to your computer and use it in GitHub Desktop.
Save enginespot/e1b2ccc6e5476c685ea75d47e0d81f53 to your computer and use it in GitHub Desktop.
linux command line tools use proxy
enable_proxy() {
export http_proxy="127.0.0.1:1080"
export https_proxy="127.0.0.1:1080"
}
disable_proxy() {
unset http_proxy
unset https_proxy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment