Skip to content

Instantly share code, notes, and snippets.

@CzBiX
Created May 31, 2018 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CzBiX/7d325a1d1dc9db614ad4d0225670707b to your computer and use it in GitHub Desktop.
Save CzBiX/7d325a1d1dc9db614ad4d0225670707b to your computer and use it in GitHub Desktop.
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