Created
November 8, 2015 12:42
-
-
Save jctosta/17daf67d447d9a7a2c14 to your computer and use it in GitHub Desktop.
Remove configurações de proxy em ambientes Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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