Last active
January 7, 2019 09:29
-
-
Save mkanenobu/9aa0c11a8c47711cf9dbcd27c4f82b5d to your computer and use it in GitHub Desktop.
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 | |
# This script can use in macOS or Linux | |
# Change [proxy] and [port] | |
# Execute $ source proxy_switch.bash | |
proxy="" | |
port="" | |
if [ -z $http_proxy ]; then | |
echo "Enable" | |
export http_proxy="http://${proxy}:${port}/" | |
else | |
echo "Disable" | |
export http_proxy="" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment