Skip to content

Instantly share code, notes, and snippets.

@jobertabma
Created August 2, 2017 00:46
Show Gist options
  • Save jobertabma/9de0775c565b8ba4bc4183b1532df479 to your computer and use it in GitHub Desktop.
Save jobertabma/9de0775c565b8ba4bc4183b1532df479 to your computer and use it in GitHub Desktop.
Bash alias for enabling HTTPS and HTTP proxy
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