Last active
August 18, 2017 22:16
-
-
Save pascencio/06ccb1d74ca555b371d04cad810bd484 to your computer and use it in GitHub Desktop.
Configuración del proxy al iniciar terminal
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
# 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