Skip to content

Instantly share code, notes, and snippets.

@kathampy
Last active November 2, 2016 11:51
Show Gist options
  • Save kathampy/615df19330ca6253ed12faafd5052d58 to your computer and use it in GitHub Desktop.
Save kathampy/615df19330ca6253ed12faafd5052d58 to your computer and use it in GitHub Desktop.
Set environment variables on macOS.
<?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>local.environment</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>setenv</string>
<string>GIT_SSH</string>
<string>/usr/bin/ssh</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