Skip to content

Instantly share code, notes, and snippets.

@jctosta
Created November 8, 2015 12:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jctosta/17daf67d447d9a7a2c14 to your computer and use it in GitHub Desktop.
Save jctosta/17daf67d447d9a7a2c14 to your computer and use it in GitHub Desktop.
Remove configurações de proxy em ambientes Linux
# Terminal Settings (WGET, Apt e etc.)
unset http_proxy
unset https_proxy
unset ftp_proxy
unset rsync_proxy
unset no_proxy
# Configurações para proxy automático em ambientes Gnome
if hash gsettings 2>/dev/null; then
gsettings set org.gnome.system.proxy mode 'none'
fi
# Git
if hash git 2>/dev/null; then
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset url."https://".insteadOf git://
fi
# Configurações do Atom Editor
if hash apm 2>/dev/null; then
apm config delete https-proxy
apm config delete http-proxy
fi
# Configurações do NPM
if hash npm 2>/dev/null; then
npm config delete https-proxy
npm config delete http-proxy
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment