Skip to content

Instantly share code, notes, and snippets.

@CzBiX
Created May 31, 2018
Embed
What would you like to do?
Use Google Drive Sync via proxy on Mac
Create new file at ~/Library/LaunchAgents/environment.plist
Add this code block and modify to appropriately set your environmental variables
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>env.startup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>
launchctl setenv DRIVE_SYNC_FORCE_PROXY http://127.0.0.1:1087
</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment