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/sh | |
# Configure the below variables with your respective Keychain and proxy information | |
# Grabs your user password from Keychain | |
export SECRET="`security find-generic-password -w -s <PASSWORD_PROFILE>`" | |
AUTH="$USER:$SECRET" | |
PROXY='<http://PROXY:PORT>' | |
AUTH_PROXY=<'http://'$AUTH'@PROXY:PORT>' | |
if [ "$1" == "on" ]; then |