Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# "Wi-Fi" is the name of your internet service. View your OS X
# network settings to see a list of your services.
work-proxy () {
if [ "$1" == 'off' ]; then
networksetup -setsocksfirewallproxystate "Wi-Fi" off
kill $(ps aux | grep '[s]sh -Nf -D 7070' | awk '{print $2}')
ssh -Nf -D 7070
networksetup -setsocksfirewallproxy "Wi-Fi" 7070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment