Skip to content

Instantly share code, notes, and snippets.

@ryun
Last active March 1, 2017 22:16
Show Gist options
  • Save ryun/556a852b39d30909a6ed1c45101f22c6 to your computer and use it in GitHub Desktop.
Save ryun/556a852b39d30909a6ed1c45101f22c6 to your computer and use it in GitHub Desktop.
Add keys on startup

INSTALL

curl -o ~/Library/LaunchAgents/ssh.add.a.plist https://gist.githubusercontent.com/ryun/556a852b39d30909a6ed1c45101f22c6/raw/55ce45ff58212ca85c1d84c0edab36e398538136/ssh.add.a.plist
<?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>ssh-add-a</string>
<key>ProgramArguments</key>
<array>
<string>ssh-add</string>
<string>-A</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