Skip to content

Instantly share code, notes, and snippets.

@pascencio
Last active August 18, 2017 22:16
Show Gist options
  • Save pascencio/06ccb1d74ca555b371d04cad810bd484 to your computer and use it in GitHub Desktop.
Save pascencio/06ccb1d74ca555b371d04cad810bd484 to your computer and use it in GitHub Desktop.
Configuración del proxy al iniciar terminal
# Para usar esta shell realice los siguientes pasos:
# 1.- wget https://gist.githubusercontent.com/pascencio/06ccb1d74ca555b371d04cad810bd484/raw/41cc6f84434576f6b45b88daa30dbddc11a65254/add_proxy.sh
# 2.- chmod +x add_proxy.sh
# 3.- ./add_proxy.sh
read -p "Ingrese el host del proxy: " host
reap -p "Ingrese el puerto del proxy: " port
echo export HTTP_PROXY=http://${host}:${port} >> ~/.bashrc
export HTTPS_PROXY=http://${host}:${port} >> ~/.bashrc
export http_proxy=http://${host}:${port} >> ~/.bashrc
export https_proxy=http://${host}:${port} >> ~/.bashrc
echo "La configuración del proxy ha sido cargada a su archivo .bashrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment