Created
August 2, 2017 00:46
-
-
Save jobertabma/9de0775c565b8ba4bc4183b1532df479 to your computer and use it in GitHub Desktop.
Bash alias for enabling HTTPS and HTTP 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
alias proxy-on="sudo networksetup -setsecurewebproxy 'Wi-Fi' 127.0.0.1 9090 && sudo networksetup -setwebproxy 'Wi-Fi' 127.0.0.1 9090" | |
alias proxy-off="sudo networksetup -setsecurewebproxystate 'Wi-Fi' off && sudo networksetup -setwebproxystate 'Wi-Fi' off" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment