Created
October 14, 2016 17:11
-
-
Save gustavi/3a70c5c7ebd9e1bca3a5c6634fdba698 to your computer and use it in GitHub Desktop.
EFREI PROXY
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
#!/bin/bash | |
# Script pour lancer le proxy à l'EFREI | |
# Fonctionne avec bash et zsh | |
# Penser à utiliser `sudo -E` si besoin | |
assignProxy(){ | |
export http_proxy=$1 | |
export https_proxy=$1 | |
export ftp_proxy=$1 | |
export all_proxy=$1 | |
export HTTP_PROXY=$1 | |
export HTTPS_PROXY=$1 | |
export FTP_PROXY=$1 | |
export ALL_PROXY=$1 | |
if [[ $1 != "" ]] | |
then | |
echo "Proxy setup to $1 !" | |
else | |
echo "Proxy is now clean !" | |
fi | |
} | |
clearProxy(){ | |
assignProxy "" | |
} | |
alias proxy_efrei="assignProxy 192.102.224.14:3128" | |
alias proxy_clear="clearProxy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment